summaryrefslogtreecommitdiff
path: root/ec2-set-hostname.py
diff options
context:
space:
mode:
authorChuck Short <zulcss@ubuntu.com>2009-05-28 06:04:31 +0200
committerChuck Short <zulcss@ubuntu.com>2009-05-28 06:04:31 +0200
commitbb5711688e7f6b2abe4e82a5b5233194a323b99d (patch)
tree734ee82e43a33a79d87b059143eccf10095ae339 /ec2-set-hostname.py
parentebfb2ed46dc72aa78e1477607ccf77b1f552fcf0 (diff)
downloadvyos-cloud-init-bb5711688e7f6b2abe4e82a5b5233194a323b99d.tar.gz
vyos-cloud-init-bb5711688e7f6b2abe4e82a5b5233194a323b99d.zip
* debian/init: Run update-motd regardless whether its a firstboot or not.
* debian/init: Fix comments (LP: #373057) * debian/control: Add update-motd as a depends. * ec2-set-defaults.py: Wait for network to become available. (LP: #308530)
Diffstat (limited to 'ec2-set-hostname.py')
-rwxr-xr-xec2-set-hostname.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ec2-set-hostname.py b/ec2-set-hostname.py
index c4e56fc9..108fe5da 100755
--- a/ec2-set-hostname.py
+++ b/ec2-set-hostname.py
@@ -52,7 +52,7 @@ def set_hostname(filename):
os.system("rm /etc/hostname")
f = open("/etc/hostname", "w")
- f.write('%s' %(t))
+ f.write('%s' %(my_hostname))
f.close()
os.system('touch %s' %(filename))