mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint and fix
This commit is contained in:
parent
1cd33cbaa9
commit
c10717dc89
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,6 @@ except ImportError:
|
|||
HAS_NAPALM_YANG = False
|
||||
|
||||
# Import salt modules
|
||||
import salt.output
|
||||
from salt.utils import fopen
|
||||
import salt.utils.napalm
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ from functools import wraps
|
|||
log = logging.getLogger(__file__)
|
||||
|
||||
import salt.utils
|
||||
import salt.output
|
||||
|
||||
# Import third party lib
|
||||
try:
|
||||
|
@ -454,10 +455,10 @@ def loaded_ret(ret, loaded, test, debug, compliance_report=False, opts=None):
|
|||
if debug and 'loaded_config' in loaded:
|
||||
changes['loaded_config'] = loaded['loaded_config']
|
||||
pchanges['loaded_config'] = loaded['loaded_config']
|
||||
ret['pchanges']= pchanges
|
||||
ret['pchanges'] = pchanges
|
||||
if changes.get('diff'):
|
||||
ret['comment'] = '{comment_base}\n\nConfiguration diff:\n\n{diff}'.format(comment_base=ret['comment'],
|
||||
diff=pchanges['diff'])
|
||||
diff=changes['diff'])
|
||||
if changes.get('loaded_config'):
|
||||
ret['comment'] = '{comment_base}\n\nLoaded config:\n\n{loaded_cfg}'.format(
|
||||
comment_base=ret['comment'],
|
||||
|
|
Loading…
Add table
Reference in a new issue