diff options
author | Kiril Vladimiroff <kiril.vladimiroff@cloudsigma.com> | 2014-05-30 14:19:10 +0300 |
---|---|---|
committer | Kiril Vladimiroff <kiril.vladimiroff@cloudsigma.com> | 2014-05-30 14:19:10 +0300 |
commit | 71d817c427f06e9e1f5d547d5db191e541963d31 (patch) | |
tree | 5ec59777a294f28f866e2000cc7ab1d4ee0f3cf6 /tests/unittests/test_datasource/test_cloudsigma.py | |
parent | 882f7186143c337e0f30f4ed2c0415f238ed5c83 (diff) | |
download | vyos-cloud-init-71d817c427f06e9e1f5d547d5db191e541963d31.tar.gz vyos-cloud-init-71d817c427f06e9e1f5d547d5db191e541963d31.zip |
Use dmidecode to detect if cloud-init runs in CloudSigma's infrastructure
Diffstat (limited to 'tests/unittests/test_datasource/test_cloudsigma.py')
-rw-r--r-- | tests/unittests/test_datasource/test_cloudsigma.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_cloudsigma.py b/tests/unittests/test_datasource/test_cloudsigma.py index adbb4afb..25dc12f3 100644 --- a/tests/unittests/test_datasource/test_cloudsigma.py +++ b/tests/unittests/test_datasource/test_cloudsigma.py @@ -35,6 +35,7 @@ class CepkoMock(Cepko): class DataSourceCloudSigmaTest(TestCase): def setUp(self): self.datasource = DataSourceCloudSigma.DataSourceCloudSigma("", "", "") + self.datasource.is_running_in_cloudsigma = lambda: True self.datasource.cepko = CepkoMock(SERVER_CONTEXT) self.datasource.get_data() |