diff options
author | Scott Moser <smoser@nelson> | 2010-01-07 21:29:27 -0500 |
---|---|---|
committer | Scott Moser <smoser@nelson> | 2010-01-07 21:29:27 -0500 |
commit | 938ba376f2c7551a471991b4046e11a4f92f30d5 (patch) | |
tree | 9f0e1e6d853d5750fd1d2e7d4a79672767ae83a4 /ec2-init.py | |
parent | 495b58abad330d5511c1f80b07088c53461579c6 (diff) | |
download | vyos-cloud-init-938ba376f2c7551a471991b4046e11a4f92f30d5.tar.gz vyos-cloud-init-938ba376f2c7551a471991b4046e11a4f92f30d5.zip |
support setting hostname
Diffstat (limited to 'ec2-init.py')
-rwxr-xr-x | ec2-init.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ec2-init.py b/ec2-init.py index 6944ff54..45932fa7 100755 --- a/ec2-init.py +++ b/ec2-init.py @@ -20,6 +20,8 @@ def main(): sys.stderr.write("Failed to get instance data") sys.exit(1) + hostname = cloud.get_hostname() + subprocess.Popen(['hostname', hostname]).communicate() #print "user data is:" + cloud.get_user_data() # store the metadata |