summaryrefslogtreecommitdiff
path: root/ec2-set-hostname.py
diff options
context:
space:
mode:
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))