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)
|
||||
return ret_stdout, '', 254
|
||||
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)
|
||||
if not term.isalive():
|
||||
while True:
|
||||
|
@ -23,6 +23,7 @@ THIN_ARCHIVE = 'salt-thin.tgz'
|
||||
EX_THIN_DEPLOY = 11
|
||||
EX_THIN_CHECKSUM = 12
|
||||
|
||||
|
||||
class OBJ(object):
|
||||
pass
|
||||
|
||||
@ -30,6 +31,7 @@ OPTIONS = None
|
||||
ARGS = None
|
||||
#%%OPTS
|
||||
|
||||
|
||||
def need_deployment():
|
||||
if os.path.exists(OPTIONS.saltdir):
|
||||
shutil.rmtree(OPTIONS.saltdir)
|
||||
@ -77,6 +79,7 @@ def unpack_thin(thin_path):
|
||||
tfile.close()
|
||||
os.unlink(thin_path)
|
||||
|
||||
|
||||
def get_modules():
|
||||
glob = ''
|
||||
while True:
|
||||
@ -88,6 +91,7 @@ def get_modules():
|
||||
ext_mods = json.loads(glob[:-6])
|
||||
write_modules(ext_mods)
|
||||
|
||||
|
||||
def write_modules(ext_mods):
|
||||
modcache = os.path.join(
|
||||
OPTIONS.saltdir,
|
||||
|
Loading…
Reference in New Issue
Block a user