summaryrefslogtreecommitdiff
diff options
authorFelipe Reyes <felipe.reyes@canonical.com>2018-05-25 13:52:52 +0000
committerFelipe Reyes <felipe.reyes@canonical.com>2018-05-25 13:52:52 +0000
commit84165acf6d1fdba21a05b3b8c526977619299465 (patch)
tree6b153901923e3a6503b10f48d992912dc36bd485
parent58a48d21f60c96daec7470ad7f492b0a71fa01f6 (diff)
Set workload to 'Unknown replica set state' instead of Unknown
-rwxr-xr-xhooks/hooks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/hooks.py b/hooks/hooks.py
index 986c897..a84f4de 100755
--- a/hooks/hooks.py
+++ b/hooks/hooks.py
@@ -1221,8 +1221,8 @@ def get_replicaset_status():
# the output given by replSetGetStatus
r_pretty = pprint.pformat(r)
juju_log('get_replicaset_status() failed to get replicaset state:' +
- r_pretty, 'WARN')
- return 'Unknown'
+ r_pretty, level=WARNING)
+ return 'Unknown replica set state'
except OperationFailure as e:
juju_log('get_replicaset_status() exception: %s' % str(e), DEBUG)