Shovelling coal into the server...
This commit is contained in:
@@ -997,19 +997,15 @@ def create_node(provider, name=None, location=None, size=None, image=None, confi
|
||||
step_2 = ScriptDeployment(SCRIPT)
|
||||
msd = MultiStepDeployment([step_1, step_2])
|
||||
node = driver.deploy_node(name=name, image=image, size=size, deploy=msd, ssh_key=SECDEP_SSH_PRIVATE_KEY)
|
||||
print('stdout: %s' % (step_1.stdout))
|
||||
print('stderr: %s' % (step_1.stderr))
|
||||
print('exit_code: %s' % (step_1.exit_status))
|
||||
print('stdout: %s' % (step_2.stdout))
|
||||
print('stderr: %s' % (step_2.stderr))
|
||||
print('exit_code: %s' % (step_2.exit_status))
|
||||
print(node.name + " created successfully")
|
||||
print("Node is initializing")
|
||||
time.sleep(30)
|
||||
time.sleep(30) #Aws takes a while to assign a public ip
|
||||
print("ip to connect to")
|
||||
print("\nIP: %s\n" % (node.public_ips))
|
||||
return node
|
||||
## aws node does not return ip
|
||||
|
||||
def list_all_nodes(filterOut=None):
|
||||
print("Getting all nodes...")
|
||||
|
||||
Reference in New Issue
Block a user