Skip to content

Commit

Permalink
Added silent flag to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
mcianfrocco committed Apr 18, 2017
1 parent 75d49d0 commit 044a446
Showing 1 changed file 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 @@ -136,7 +136,7 @@ def launchInstance(params,keyName,keyPath,AMI,AWS_ACCOUNT_ID):
securityGroupName='sg_%i' %(int(time.time()))
securityGroupDescript='Automated security group'
#if uname == 'Linux':
IPaddress=subprocess.Popen('curl ipecho.net/plain; echo',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()
#if uname == 'Darwin':
#IPaddress=subprocess.Popen('curl ipecho.net/plain ; echo',shell=True, stdout=subprocess.PIPE).stdout.read().strip()
if len(IPaddress) == 0:
Expand Down

0 comments on commit 044a446

Please sign in to comment.