Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersson007 committed Sep 28, 2021
1 parent d6f2292 commit 5e62c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/cliconf/onyx.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_device_info(self):
return device_info

@enable_mode
def get_config(self, source='running', format='text', flags=None):
def get_config(self, source='running', flags=None, format='text'):
if source not in ('running',):
return self.invalid_params("fetching configuration from %s is not supported" % source)
cmd = 'show running-config'
Expand Down
3 changes: 1 addition & 2 deletions plugins/modules/onyx_wjh.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ def wjh_group_status(self, current_config, group_value, suffix=''):
current_enabled = False
if group_value == 'all':
# no disabled group so all would be false
current_enabled = not all([
(group + suffix) in current_config for group in self.WJH_GROUPS])
current_enabled = not all((group + suffix) in current_config for group in self.WJH_GROUPS)
else:
# if no current-value its enabled
current_enabled = current_config[group_value + suffix] if((group_value + suffix) in current_config) else True
Expand Down

0 comments on commit 5e62c04

Please sign in to comment.