summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceSmartOS.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-05-27 14:27:50 -0400
committerScott Moser <smoser@ubuntu.com>2016-05-27 14:27:50 -0400
commit8a148ed934156c63a76a28c9d3a33278e52d71d1 (patch)
tree874a9b5dc7d4dde801f535564f0d5b042fd00f12 /cloudinit/sources/DataSourceSmartOS.py
parente6e768769d67960cde12dee0b0c2b58deb2eb376 (diff)
downloadvyos-cloud-init-8a148ed934156c63a76a28c9d3a33278e52d71d1.tar.gz
vyos-cloud-init-8a148ed934156c63a76a28c9d3a33278e52d71d1.zip
fix the remaining tests
Diffstat (limited to 'cloudinit/sources/DataSourceSmartOS.py')
-rw-r--r--cloudinit/sources/DataSourceSmartOS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py
index e64dea68..e9ff1235 100644
--- a/cloudinit/sources/DataSourceSmartOS.py
+++ b/cloudinit/sources/DataSourceSmartOS.py
@@ -332,11 +332,11 @@ class JoyentMetadataClient(object):
r' (?P<body>(?P<request_id>[0-9a-f]+) (?P<status>SUCCESS|NOTFOUND)'
r'( (?P<payload>.+))?)')
- def __init__(self, smartos_type=None):
+ def __init__(self, smartos_type=None, fp=None):
if smartos_type is None:
smartos_type = get_smartos_environ()
self.smartos_type = smartos_type
- self.fp = None
+ self.fp = fp
def _checksum(self, body):
return '{0:08x}'.format(