mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
parent
fb5d63da16
commit
c799ee2f7a
@ -664,6 +664,7 @@ def latest(name,
|
||||
identity = [identity]
|
||||
elif not isinstance(identity, list):
|
||||
return _fail(ret, 'identity must be either a list or a string')
|
||||
identity = [os.path.expanduser(x) for x in identity]
|
||||
for ident_path in identity:
|
||||
if 'salt://' in ident_path:
|
||||
try:
|
||||
@ -2315,6 +2316,7 @@ def detached(name,
|
||||
identity = [identity]
|
||||
elif not isinstance(identity, list):
|
||||
return _fail(ret, 'Identity must be either a list or a string')
|
||||
identity = [os.path.expanduser(x) for x in identity]
|
||||
for ident_path in identity:
|
||||
if 'salt://' in ident_path:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user