Fix git state identity lacking of user expansion #48461 and #48462

This commit is contained in:
Damien Degois 2018-07-26 08:24:33 +02:00
parent fb5d63da16
commit c799ee2f7a

View File

@ -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: