Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: scripts/configlet, TypeError: 'dict_keys' object is not subscriptable #1573

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phiea
Copy link

@phiea phiea commented Apr 20, 2021

What I did

tested on SONiC.202012.77, python 3.7.3

How I did it

rewrote it on Python 3.8.5

How to verify it

lst={'test':{'nested':1}}

type(lst[next(iter(lst))])

Previous command output (if the output of a command-line utility has changed)

TypeError: 'dict_keys' object is not subscriptable

New command output (if the output of a command-line utility has changed)

<class 'dict'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant