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:
Chris Rebert 2013-12-13 14:47:42 -08:00
parent 80e6ba4ae9
commit 55ae624b3f

View File

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