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

Local variable 'username' referenced before assignment error when querying device status #1116

Closed
dpeachey opened this issue Dec 1, 2021 · 0 comments · Fixed by #1117
Closed
Assignees
Labels
type: bug Something isn't working as expected
Milestone

Comments

@dpeachey
Copy link

dpeachey commented Dec 1, 2021

Environment

  • Python version: 3.9.9
  • Nautobot version: v1.2.0b1

Steps to Reproduce

  1. Set NAUTOBOT_NAPALM_USERNAME and NAUTOBOT_NAPALM_PASSWORD environment variables
  2. Add a device with primary management interface/IP (device is a Cisco XRv in my case)
  3. Go to device status tab

Expected Behavior

View device status

Observed Behavior

UnboundLocalError exception is thrown with error message "local variable 'username' referenced before assignment"

@glennmatthews glennmatthews added the type: bug Something isn't working as expected label Dec 1, 2021
@glennmatthews glennmatthews added this to the v1.2.0 milestone Dec 1, 2021
@glennmatthews glennmatthews self-assigned this Dec 1, 2021
glennmatthews added a commit that referenced this issue Dec 1, 2021
glennmatthews added a commit that referenced this issue Dec 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants