mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
lint
This commit is contained in:
parent
985ec7c05e
commit
9e879a1d91
@ -349,7 +349,7 @@ class Shell(object):
|
|||||||
'flag:\n{0}').format(stdout)
|
'flag:\n{0}').format(stdout)
|
||||||
return ret_stdout, '', 254
|
return ret_stdout, '', 254
|
||||||
elif stdout and stdout.endswith('_||ext_mods||_'):
|
elif stdout and stdout.endswith('_||ext_mods||_'):
|
||||||
mods_raw = json.dumps(self.mods, separators=(',',':')) + '|_E|0|'
|
mods_raw = json.dumps(self.mods, separators=(',', ':')) + '|_E|0|'
|
||||||
term.sendline(mods_raw)
|
term.sendline(mods_raw)
|
||||||
if not term.isalive():
|
if not term.isalive():
|
||||||
while True:
|
while True:
|
||||||
|
@ -23,6 +23,7 @@ THIN_ARCHIVE = 'salt-thin.tgz'
|
|||||||
EX_THIN_DEPLOY = 11
|
EX_THIN_DEPLOY = 11
|
||||||
EX_THIN_CHECKSUM = 12
|
EX_THIN_CHECKSUM = 12
|
||||||
|
|
||||||
|
|
||||||
class OBJ(object):
|
class OBJ(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ OPTIONS = None
|
|||||||
ARGS = None
|
ARGS = None
|
||||||
#%%OPTS
|
#%%OPTS
|
||||||
|
|
||||||
|
|
||||||
def need_deployment():
|
def need_deployment():
|
||||||
if os.path.exists(OPTIONS.saltdir):
|
if os.path.exists(OPTIONS.saltdir):
|
||||||
shutil.rmtree(OPTIONS.saltdir)
|
shutil.rmtree(OPTIONS.saltdir)
|
||||||
@ -77,6 +79,7 @@ def unpack_thin(thin_path):
|
|||||||
tfile.close()
|
tfile.close()
|
||||||
os.unlink(thin_path)
|
os.unlink(thin_path)
|
||||||
|
|
||||||
|
|
||||||
def get_modules():
|
def get_modules():
|
||||||
glob = ''
|
glob = ''
|
||||||
while True:
|
while True:
|
||||||
@ -88,6 +91,7 @@ def get_modules():
|
|||||||
ext_mods = json.loads(glob[:-6])
|
ext_mods = json.loads(glob[:-6])
|
||||||
write_modules(ext_mods)
|
write_modules(ext_mods)
|
||||||
|
|
||||||
|
|
||||||
def write_modules(ext_mods):
|
def write_modules(ext_mods):
|
||||||
modcache = os.path.join(
|
modcache = os.path.join(
|
||||||
OPTIONS.saltdir,
|
OPTIONS.saltdir,
|
||||||
|
Loading…
Reference in New Issue
Block a user