diff options
author | Scott Moser <smoser@nelson> | 2010-01-08 00:21:26 -0500 |
---|---|---|
committer | Scott Moser <smoser@nelson> | 2010-01-08 00:21:26 -0500 |
commit | a94b81b104c90006bf56107ed902f5d1858b5907 (patch) | |
tree | 6cf13cc8fb3f92e70cd1680ad70a679e96bd499c | |
parent | 788a3bfb0165caacade779a5b99891e04cdf7123 (diff) | |
download | vyos-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.py | 4 |
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") |