mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Remove unecessary format, a string is always a string
This commit is contained in:
parent
69f3f3dd0f
commit
e55919b0d1
@ -393,7 +393,7 @@ def grains(opts, force_refresh=False):
|
|||||||
if opts.get('grains_cache', False):
|
if opts.get('grains_cache', False):
|
||||||
cfn = os.path.join(
|
cfn = os.path.join(
|
||||||
opts['cachedir'],
|
opts['cachedir'],
|
||||||
'{0}.cache.p'.format('grains')
|
'grains.cache.p'
|
||||||
)
|
)
|
||||||
if os.path.isfile(cfn):
|
if os.path.isfile(cfn):
|
||||||
grains_cache_age = int(time.time() - os.path.getmtime(cfn))
|
grains_cache_age = int(time.time() - os.path.getmtime(cfn))
|
||||||
|
Loading…
Reference in New Issue
Block a user