Remove references to v2_0 from examples
The network resources used to be in a v2_0 directory, but they got moved to v2. Change-Id: I9d95b3df61a53e0f60536315dbb0185959910fc4
This commit is contained in:
@@ -49,14 +49,14 @@ _logger = logging.getLogger(__name__)
|
|||||||
def find_resource_cls(opts):
|
def find_resource_cls(opts):
|
||||||
argument = opts.argument
|
argument = opts.argument
|
||||||
if argument.find('/') > 0:
|
if argument.find('/') > 0:
|
||||||
# called with file e.g.: openstack/network/v2_0/network.py
|
# called with file e.g.: openstack/network/v2/network.py
|
||||||
args = argument.split('/')
|
args = argument.split('/')
|
||||||
args[-1] = args[-1].replace('.py', '')
|
args[-1] = args[-1].replace('.py', '')
|
||||||
from_str = '.'.join(args)
|
from_str = '.'.join(args)
|
||||||
class_str = args[-1].title()
|
class_str = args[-1].title()
|
||||||
class_str = class_str.replace('_', '')
|
class_str = class_str.replace('_', '')
|
||||||
else:
|
else:
|
||||||
# called with path e.g.: openstack.network.v2_0.network.Network
|
# called with path e.g.: openstack.network.v2.network.Network
|
||||||
args = argument.rpartition('.')
|
args = argument.rpartition('.')
|
||||||
from_str = args[0]
|
from_str = args[0]
|
||||||
class_str = args[2]
|
class_str = args[2]
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
Example Create Command
|
Example Create Command
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
python -m examples.create openstack/network/v2_0/network.py \
|
python -m examples.create openstack/network/v2/network.py \
|
||||||
--data '{"name": "foo"}'
|
--data '{"name": "foo"}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
Example Delete Command
|
Example Delete Command
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
python -m examples.delete openstack/network/v2_0/network.py \
|
python -m examples.delete openstack/network/v2/network.py \
|
||||||
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
Example Find Command
|
Example Find Command
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
python -m examples.find openstack/network/v2_0/network.py \
|
python -m examples.find openstack/network/v2/network.py \
|
||||||
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
Example Get Command
|
Example Get Command
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
python -m examples.get openstack/network/v2_0/network.py \
|
python -m examples.get openstack/network/v2/network.py \
|
||||||
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
--data '{"id": "a1369557-748f-429c-bd3e-fc385aacaec7"}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
Example Update Command
|
Example Update Command
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
python -m examples.update openstack/network/v2_0/network.py \
|
python -m examples.update openstack/network/v2/network.py \
|
||||||
--data '{"name": "foo"}'
|
--data '{"name": "foo"}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user