Skip to content

Commit

Permalink
black tool reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rahkumar651991 committed Oct 13, 2020
1 parent 7584dc2 commit 310f1cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/jnpr/junos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ class _Connection(object):
model_dict = {}
with open("/etc/product.conf") as f:
for line in f:
(key, val) = line.rstrip().split('=')
(key, val) = line.rstrip().split("=")
model_dict[key] = val

if 'model' in model_dict and model_dict['model'] in ['crpd', 'cbng', 'cmgd']:
if "model" in model_dict and model_dict["model"] in [
"crpd",
"cbng",
"cmgd",
]:
ON_JUNOS = True

auto_probe = 0 # default is no auto-probe
Expand Down

0 comments on commit 310f1cb

Please sign in to comment.