mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
states.git.latest(): fix bad format call
salt/states/git.py:272: [E1101(no-member), latest] Instance of 'dict' has no 'format' member
This commit is contained in:
parent
80e6ba4ae9
commit
55ae624b3f
@ -269,8 +269,8 @@ def latest(name,
|
||||
shutil.rmtree(target)
|
||||
# git clone is required, but target exists and is non-empty
|
||||
elif os.listdir(target):
|
||||
return _fail(ret, "Directory '{0}' exists, is non-empty, and\
|
||||
force option not in use").format(target)
|
||||
return _fail(ret, 'Directory \'{0}\' exists, is non-empty, and '
|
||||
'force option not in use'.format(target))
|
||||
|
||||
# git clone is required
|
||||
log.debug(
|
||||
|
Loading…
Reference in New Issue
Block a user