Skip to content

Commit

Permalink
amélioration finale pour le script_simple
Browse files Browse the repository at this point in the history
  • Loading branch information
gdubroeucq committed Nov 4, 2016
1 parent 1d171b5 commit 0d6d0a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Script_simple/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ def main():
cli="service %s %s"% (sys.argv[i], sys.argv[i+1])
task.shell(cli, nodes=sys.argv[1])
task.run()
for output, nodelist in task.iter_buffers():
print '\n'
print '%s: %s' % (NodeSet.fromlist(nodelist), output)
for output, nodelist in task.iter_buffers():
print ''
print '%s: %s' % (NodeSet.fromlist(nodelist), output)
else:
print("Erreur: Veuillez vérifier que la commande soit compris dans [start,stop,status,restart,reload]")
else:
print("Erreur: Veuillez vérifier le nombre de paramètres")

Expand Down

0 comments on commit 0d6d0a7

Please sign in to comment.