Skip to content

Commit

Permalink
change exit to raise in creds_mng
Browse files Browse the repository at this point in the history
  • Loading branch information
liorf committed Mar 1, 2017
1 parent fc90eef commit 96c7264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsot_sync/drivers/device_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DeviceScannerDriver(BaseDriver):
},
]

def __init__(self, max_threads, scan_vlan, snmp_community, snmp_version, update_creds, *args, **kwargs):
def __init__(self, max_threads, scan_vlan, snmp_community, snmp_version, *args, **kwargs):
super(DeviceScannerDriver, self).__init__(*args, **kwargs)
self.site_id = self.click_ctx.obj['SITE_ID']
self.logger = logging.getLogger(__name__)
Expand All @@ -87,7 +87,7 @@ def __init__(self, max_threads, scan_vlan, snmp_community, snmp_version, update_
self.scan_vlan = scan_vlan
self.snmp_community = snmp_community
self.snmp_version = snmp_version
self.update_creds = update_creds
# self.update_creds = update_creds
self.max_threads = max_threads
creds_mng = CredsManager(update_creds=self.update_creds, name=__name__)
self.user, self.password = creds_mng.load_creds
Expand Down

0 comments on commit 96c7264

Please sign in to comment.