Add quotes around vars in all return messages

This commit is contained in:
2019-07-08 22:37:26 -04:00
parent dd78aa8fb8
commit a3de9da513
4 changed files with 13 additions and 13 deletions

View File

@ -112,7 +112,7 @@ def secondary_node(zk_conn, node):
'/primary_node': 'none'
})
else:
return False, 'Node {} is already in secondary router mode.'.format(node)
return False, 'Node "{}" is already in secondary router mode.'.format(node)
return True, retmsg
@ -139,7 +139,7 @@ def primary_node(zk_conn, node):
'/primary_node': node
})
else:
return False, 'Node {} is already in primary router mode.'.format(node)
return False, 'Node "{}" is already in primary router mode.'.format(node)
return True, retmsg