[node-patches] Change in ovirt-node[master]: password.py:Shown the current status of ssh password authent...
hadong0720 at gmail.com
hadong0720 at gmail.com
Mon Jul 1 10:39:52 UTC 2013
hadong has uploaded a new change for review.
Change subject: password.py:Shown the current status of ssh password authentication
......................................................................
password.py:Shown the current status of ssh password authentication
Previously after setting SSH password authentication, it didn't show
the current status of ssh password authentication.
Now showing it.
Change-Id: I993caff328f9cb13905a62d3e1bc4e0bf8028485
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/tools/password.py
1 file changed, 9 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/86/16286/1
diff --git a/src/ovirt/node/tools/password.py b/src/ovirt/node/tools/password.py
index ddb1a5c..d14c009 100644
--- a/src/ovirt/node/tools/password.py
+++ b/src/ovirt/node/tools/password.py
@@ -54,7 +54,15 @@
prompt = "Enable SSH password authentication ([Y]es/[N]o)?"
do_enable = self.__ask_yes_or_no(prompt)
self.logger.debug("Setting SSH password authentication")
- security.Ssh().password_authentication(do_enable)
+ state = security.Ssh().password_authentication(do_enable)
+ if state == "yes":
+ self.logger.info("SSH password authentication "
+ "is currently enabled.")
+ elif state == "no":
+ self.logger.info("SSH password authentication is "
+ "currently disabled.")
+ else:
+ self.logger.error("Setting SSH password authentication failed")
def do_quit(self, line):
"""Quit
--
To view, visit http://gerrit.ovirt.org/16286
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I993caff328f9cb13905a62d3e1bc4e0bf8028485
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list