mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint, remove debug.
This commit is contained in:
parent
e41b677450
commit
cc0ad81b3d
1 changed files with 2 additions and 4 deletions
|
@ -46,9 +46,6 @@ def init(opts):
|
|||
password=__opts__['proxy']['password'])
|
||||
out, err = DETAILS['server'].sendline('help')
|
||||
|
||||
log.debug(out)
|
||||
log.debug(err)
|
||||
|
||||
except TerminalException as e:
|
||||
log.error(e)
|
||||
return False
|
||||
|
@ -61,6 +58,7 @@ def shutdown(opts):
|
|||
'''
|
||||
DETAILS['server'].close_connection()
|
||||
|
||||
|
||||
def package_list():
|
||||
'''
|
||||
List "packages" by executing a command via ssh
|
||||
|
@ -81,7 +79,7 @@ def package_list():
|
|||
if '{' in l:
|
||||
in_json = True
|
||||
if in_json:
|
||||
jsonret.append(l)
|
||||
jsonret.append(l)
|
||||
if '}' in l:
|
||||
in_json = False
|
||||
return json.loads('\n'.join(jsonret))
|
||||
|
|
Loading…
Add table
Reference in a new issue