summaryrefslogtreecommitdiff
path: root/cpp/config/IceGridAdmin.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/config/IceGridAdmin.py')
-rw-r--r--cpp/config/IceGridAdmin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/config/IceGridAdmin.py b/cpp/config/IceGridAdmin.py
index f445999de3a..117fab4bc94 100644
--- a/cpp/config/IceGridAdmin.py
+++ b/cpp/config/IceGridAdmin.py
@@ -121,13 +121,16 @@ def iceGridAdmin(cmd, ignoreFailure = False):
global iceGridPort
iceGridAdmin = os.path.join(toplevel, "bin", "icegridadmin")
+ user = r"admin1"
+ if cmd == "shutdown":
+ user = r"shutdown"
command = iceGridAdmin + TestUtil.clientOptions + \
r' --Ice.Default.Locator="IceGrid/Locator:default -p ' + iceGridPort + '" ' + \
+ r" --IceGridAdmin.Username=" + user + " --IceGridAdmin.Password=test1 " + \
r' -e "' + cmd + '" 2>&1'
if debug:
print command
-
iceGridAdminPipe = os.popen(command)
output = iceGridAdminPipe.readlines()