summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@nelson>2010-01-08 00:21:26 -0500
committerScott Moser <smoser@nelson>2010-01-08 00:21:26 -0500
commita94b81b104c90006bf56107ed902f5d1858b5907 (patch)
tree6cf13cc8fb3f92e70cd1680ad70a679e96bd499c
parent788a3bfb0165caacade779a5b99891e04cdf7123 (diff)
downloadvyos-cloud-init-a94b81b104c90006bf56107ed902f5d1858b5907.tar.gz
vyos-cloud-init-a94b81b104c90006bf56107ed902f5d1858b5907.zip
read cached user-data without pickling -- its just a string
-rw-r--r--ec2init/DataSourceEc2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ec2init/DataSourceEc2.py b/ec2init/DataSourceEc2.py
index 6bf7f2b5..060d5146 100644
--- a/ec2init/DataSourceEc2.py
+++ b/ec2init/DataSourceEc2.py
@@ -22,8 +22,8 @@ class DataSourceEc2(DataSource.DataSource):
def get_data(self):
try:
- udf = open(self.cachedir + "/user-data.pkl")
- self.userdata_raw = cPickle.load(udf)
+ udf = open(self.cachedir + "/user-data.raw")
+ self.userdata_raw = udf.read()
udf.close()
mdf = open(self.cachedir + "/meta-data.pkl")