summaryrefslogtreecommitdiff
path: root/ec2-run-user-data.py
diff options
context:
space:
mode:
Diffstat (limited to 'ec2-run-user-data.py')
-rwxr-xr-xec2-run-user-data.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ec2-run-user-data.py b/ec2-run-user-data.py
index d7e8e632..2108e0a0 100755
--- a/ec2-run-user-data.py
+++ b/ec2-run-user-data.py
@@ -154,10 +154,13 @@ class ApplianceConfig(object):
def main():
ec2 = ec2init.EC2Init()
- user_data = ec2.get_user_data()
+ user_data = get_user_data()
msg = parse_user_data(user_data)
handle_part(msg)
+def get_user_data():
+ return ec2.get_user_data()
+
def parse_user_data(user_data):
return email.message_from_string(user_data)