request entry point has correct output

parent e0f8b833
...@@ -205,11 +205,10 @@ slapos-request allows you to request slapos instances.""" % sys.argv[0] ...@@ -205,11 +205,10 @@ slapos-request allows you to request slapos instances.""" % sys.argv[0]
filter_kw = config.node, filter_kw = config.node,
shared = config.slave shared = config.slave
) )
print("Instance requested.\nState is : %s.\nYou can " print "Instance requested.\nState is : %s." % partition.getState()
"rerun to get up-to-date informations." % ( print "Connection parameters of instance are:"
partition.getState())) pprint.pprint(partition.getConnectionParameterDict())
print("Connection parameters of instance are:\n%s" % pprint.pprint( print "You can rerun command to get up-to-date informations."
partition.getConnectionParameterDict()))
except ResourceNotReady: except ResourceNotReady:
print("Instance requested. Master is provisionning it. Please rerun in a " print("Instance requested. Master is provisionning it. Please rerun in a "
"couple of minutes to get connection informations") "couple of minutes to get connection informations")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment