From df136e343c28d7099b122604e41e44ec3689525b Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 1 Oct 2014 13:58:46 -0700 Subject: [PATCH] fix InfluxDB log string formatting --- salt/modules/influx.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/modules/influx.py b/salt/modules/influx.py index bef0f696de..fa0740ff10 100644 --- a/salt/modules/influx.py +++ b/salt/modules/influx.py @@ -300,7 +300,7 @@ def user_create(name, passwd, database=None, user=None, password=None, """ if user_exists(name, database, user, password, host, port): if database: - log.info('User {0!r} already exists for DB {0!r}'.format( + log.info('User {0!r} already exists for DB {1!r}'.format( name, database)) else: log.info('Cluster admin {0!r} already exists'.format(name)) @@ -351,7 +351,7 @@ def user_chpass(name, passwd, database=None, user=None, password=None, """ if not user_exists(name, database, user, password, host, port): if database: - log.info('User {0!r} does not exist for DB {0!r}'.format( + log.info('User {0!r} does not exist for DB {1!r}'.format( name, database)) else: log.info('Cluster admin {0!r} does not exist'.format(name)) @@ -402,7 +402,7 @@ def user_remove(name, database=None, user=None, password=None, host=None, """ if not user_exists(name, database, user, password, host, port): if database: - log.info('User {0!r} does not exist for DB {0!r}'.format( + log.info('User {0!r} does not exist for DB {1!r}'.format( name, database)) else: log.info('Cluster admin {0!r} does not exist'.format(name))