Skip to content

Commit

Permalink
Changed IP retrieval to be difft bw linux and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mcianfrocco committed Aug 10, 2017
1 parent 0ed1667 commit 8d51ab6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/launch_AWS_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def launchInstance(params,keyName,keyPath,AMI,AWS_ACCOUNT_ID):
if uname == 'Linux':
IPaddress=subprocess.Popen('curl -s ipecho.net/plain; echo',shell=True, stdout=subprocess.PIPE).stdout.read().strip()

if uname == 'Darwin'
if uname == 'Darwin':
IPaddress=subprocess.Popen('curl -s ipecho.net | grep "Your IP is" | sed -e "s/^.* //" -e "s/\<.*$//"',shell=True, stdout=subprocess.PIPE).stdout.read().strip()

#IPaddress=subprocess.Popen('curl -s ipecho.net/plain; echo',shell=True, stdout=subprocess.PIPE).stdout.read().strip()
Expand Down
Binary file modified aws_build_linux/launch_AWS_instance.py
Binary file not shown.

0 comments on commit 8d51ab6

Please sign in to comment.