You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is the list of ‘getters’ in the NXAPI() class:
Test code will 'Succeed' with this Bug in place, as 'username' and 'password' are identical. The 'get_password()' method returns 'self.username' where 'self.password' is expected.
Below is the list of ‘getters’ in the NXAPI() class:
Test code will 'Succeed' with this Bug in place, as 'username' and 'password' are identical. The 'get_password()' method returns 'self.username' where 'self.password' is expected.
class NXAPI:
'''A better NX-API utility'''
def init(self):
self.target_url = 'http://localhost/ins'
self.username = 'admin'
self.password = ‘admin’
self.timeout = 10
…
…
def get_target_url(self):
return self.target_url
The text was updated successfully, but these errors were encountered: