Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Added license agreement
Browse files Browse the repository at this point in the history
  • Loading branch information
excelero-andreas authored Feb 16, 2019
1 parent 910a42e commit d80c65d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions nvmesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2663,13 +2663,21 @@ def manage_nvmesh_service(scope, details, servers, action, prefix, parallel, gra
else:
for server in host_list:
if action == "check":
ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope))
ssh_return = ssh.return_remote_command_std_output(server,
"/opt/NVMesh/%s*/services/nvmesh%s status" % (
scope[0], scope))
elif action == "start":
ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope))
ssh_return = ssh.return_remote_command_std_output(server,
"/opt/NVMesh/%s*/services/nvmesh%s start" % (
scope[0], scope))
elif action == "stop":
ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope))
ssh_return = ssh.return_remote_command_std_output(server,
"/opt/NVMesh/%s*/services/nvmesh%s stop" % (
scope[0], scope))
elif action == "restart":
ssh_return = ssh.return_remote_command_std_output(server, "/opt/NVMesh/%s*/services/nvmesh%s status" % (scope[0], scope))
ssh_return = ssh.return_remote_command_std_output(server,
"/opt/NVMesh/%s*/services/nvmesh%s restart" % (
scope[0], scope))
if ssh_return:
if ssh_return[0] == 0:
if details is True:
Expand Down

0 comments on commit d80c65d

Please sign in to comment.