Skip to content

Commit 99ffebd

Browse files
committed
Minor fixes.
Tested with a different account.
1 parent e2e9c47 commit 99ffebd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aws/aws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def check_keypair(driver, configs):
7878
logging.info("KEYPAIR does not exist. Creating keypair")
7979
key_pair = driver.create_key_pair(name=configs['AWS_KEYPAIR_NAME'])
8080
f = open(configs['AWS_KEYPAIR_FILE'], 'w')
81-
f.write(str(key_pair.private_key) + '\n')
81+
f.write(str(key_pair.private_key))
8282
f.close()
8383
os.chmod(configs['AWS_KEYPAIR_FILE'], 0600)
8484
logging.info("KEYPAIR created")
@@ -117,7 +117,7 @@ def start_headnode(driver, configs):
117117
print '{0:20} | {1:10} | {2:15}'.format(node.name, NODESTATES[node.state], node.public_ips[0])
118118
print '-'*51
119119
f = open('./PUBLIC_ADDRESS', 'w')
120-
f.write(str(node.public_ips[0])) + '\n')
120+
f.write(str(node.public_ips[0]))
121121
f.close()
122122

123123

aws/configs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AWS_CREDENTIALS_FILE=~/.ssh/boto-test-credentials.csv
1+
AWS_CREDENTIALS_FILE=~/.ssh/aws-credentials.csv
22

33
# Set the number of worker nodes required
44
AWS_WORKER_COUNT=5

0 commit comments

Comments
 (0)