22 lines
815 B
Diff
22 lines
815 B
Diff
commit 5ba79c28c3759e298b780751b1b3314f7f071839
|
|
Author: Chris Feist <cfeist@redhat.com>
|
|
AuthorDate: Fri Apr 19 17:06:20 2013 -0500
|
|
Commit: Chris Feist <cfeist@redhat.com>
|
|
CommitDate: Fri Apr 19 17:06:20 2013 -0500
|
|
|
|
Fixed error in updateToken error output
|
|
|
|
diff --git a/pcs/utils.py b/pcs/utils.py
|
|
index 0e47423..d64cb5c 100644
|
|
--- a/pcs/utils.py
|
|
+++ b/pcs/utils.py
|
|
@@ -30,7 +30,7 @@ def updateToken(node,username,password):
|
|
data = urllib.urlencode({'username':username, 'password':password})
|
|
out = sendHTTPRequest(node, 'remote/auth', data, False)
|
|
if out[0] != 0:
|
|
- err("unable to connect to pcsd on %s\n" % node + out)
|
|
+ err("unable to connect to pcsd on %s\n" % node + out[1])
|
|
token = out[1]
|
|
if token == "":
|
|
err("Username and/or password is incorrect")
|