Remove unecessary format, a string is always a string

This commit is contained in:
Thomas Jackson 2015-02-04 15:00:16 -08:00
parent 69f3f3dd0f
commit e55919b0d1

View File

@ -393,7 +393,7 @@ def grains(opts, force_refresh=False):
if opts.get('grains_cache', False):
cfn = os.path.join(
opts['cachedir'],
'{0}.cache.p'.format('grains')
'grains.cache.p'
)
if os.path.isfile(cfn):
grains_cache_age = int(time.time() - os.path.getmtime(cfn))