summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/compute/v2/fakes.py
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-10-26 03:20:17 +0000
committerGerrit Code Review <review@openstack.org>2018-10-26 03:20:17 +0000
commit0fa3c84b4fff273c75de454736cd0d631ee40a08 (patch)
tree5ad3504432ca7c9864de258c26fff49956875687 /openstackclient/tests/unit/compute/v2/fakes.py
parent02f492ae4cc52ed2642f42bc0c1e5e417ebfe527 (diff)
parent1008544882fbdae16b045abca05cf3e2e8a14787 (diff)
downloadpython-openstackclient-0fa3c84b4fff273c75de454736cd0d631ee40a08.tar.gz
Merge "Default --nic to 'auto' if creating a server with >= 2.37"
Diffstat (limited to 'openstackclient/tests/unit/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/unit/compute/v2/fakes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/compute/v2/fakes.py b/openstackclient/tests/unit/compute/v2/fakes.py
index 9a065be1..234bbd9b 100644
--- a/openstackclient/tests/unit/compute/v2/fakes.py
+++ b/openstackclient/tests/unit/compute/v2/fakes.py
@@ -17,6 +17,7 @@ import copy
import uuid
import mock
+from novaclient import api_versions
from openstackclient.api import compute_v2
from openstackclient.tests.unit import fakes
@@ -201,6 +202,8 @@ class FakeComputev2Client(object):
self.management_url = kwargs['endpoint']
+ self.api_version = api_versions.APIVersion('2.1')
+
class TestComputev2(utils.TestCommand):