summaryrefslogtreecommitdiff
path: root/openstackclient/volume
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2013-07-11 22:40:24 -0500
committerSteve Martinelli <stevemar@ca.ibm.com>2013-07-12 11:07:33 -0500
commit1a0d5ccc68f65394292992b48afe20241e89e7b8 (patch)
treee28cadeb264d0b2701bc20ea5ef2d636ef991cec /openstackclient/volume
parentf0d3bf85d8102b9bdfe83852588f9bdc895f32c6 (diff)
downloadpython-openstackclient-1a0d5ccc68f65394292992b48afe20241e89e7b8.tar.gz
Remove api = apiName calls from each method
As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
Diffstat (limited to 'openstackclient/volume')
-rw-r--r--openstackclient/volume/v1/backup.py5
-rw-r--r--openstackclient/volume/v1/snapshot.py5
-rw-r--r--openstackclient/volume/v1/type.py5
-rw-r--r--openstackclient/volume/v1/volume.py6
4 files changed, 0 insertions, 21 deletions
diff --git a/openstackclient/volume/v1/backup.py b/openstackclient/volume/v1/backup.py
index cd1afd60..8ef666c1 100644
--- a/openstackclient/volume/v1/backup.py
+++ b/openstackclient/volume/v1/backup.py
@@ -27,7 +27,6 @@ from openstackclient.common import utils
class CreateBackup(show.ShowOne):
"""Create backup command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.CreateBackup')
def get_parser(self, prog_name):
@@ -75,7 +74,6 @@ class CreateBackup(show.ShowOne):
class DeleteBackup(command.Command):
"""Delete backup command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.DeleteBackup')
def get_parser(self, prog_name):
@@ -99,7 +97,6 @@ class DeleteBackup(command.Command):
class ListBackup(lister.Lister):
"""List backup command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ListBackup')
def take_action(self, parsed_args):
@@ -122,7 +119,6 @@ class ListBackup(lister.Lister):
class RestoreBackup(command.Command):
"""Restore backup command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.RestoreBackup')
def get_parser(self, prog_name):
@@ -151,7 +147,6 @@ class RestoreBackup(command.Command):
class ShowBackup(show.ShowOne):
"""Show backup command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ShowBackup')
def get_parser(self, prog_name):
diff --git a/openstackclient/volume/v1/snapshot.py b/openstackclient/volume/v1/snapshot.py
index a4cf86bf..6055a4d8 100644
--- a/openstackclient/volume/v1/snapshot.py
+++ b/openstackclient/volume/v1/snapshot.py
@@ -28,7 +28,6 @@ from openstackclient.common import utils
class CreateSnapshot(show.ShowOne):
"""Create snapshot command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.CreateSnapshot')
def get_parser(self, prog_name):
@@ -76,7 +75,6 @@ class CreateSnapshot(show.ShowOne):
class DeleteSnapshot(command.Command):
"""Delete snapshot command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.DeleteSnapshot')
def get_parser(self, prog_name):
@@ -100,7 +98,6 @@ class DeleteSnapshot(command.Command):
class ListSnapshot(lister.Lister):
"""List snapshot command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ListSnapshot')
def take_action(self, parsed_args):
@@ -123,7 +120,6 @@ class ListSnapshot(lister.Lister):
class SetSnapshot(command.Command):
"""Set snapshot command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.SetSnapshot')
def get_parser(self, prog_name):
@@ -163,7 +159,6 @@ class SetSnapshot(command.Command):
class ShowSnapshot(show.ShowOne):
"""Show snapshot command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ShowSnapshot')
def get_parser(self, prog_name):
diff --git a/openstackclient/volume/v1/type.py b/openstackclient/volume/v1/type.py
index e146ee3f..dab21d99 100644
--- a/openstackclient/volume/v1/type.py
+++ b/openstackclient/volume/v1/type.py
@@ -28,7 +28,6 @@ from openstackclient.common import utils
class CreateVolumeType(show.ShowOne):
"""Create volume type command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.CreateVolumeType')
def get_parser(self, prog_name):
@@ -55,7 +54,6 @@ class CreateVolumeType(show.ShowOne):
class DeleteVolumeType(command.Command):
"""Delete volume type command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.DeleteVolumeType')
def get_parser(self, prog_name):
@@ -79,7 +77,6 @@ class DeleteVolumeType(command.Command):
class ListVolumeType(lister.Lister):
"""List volume type command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ListVolumeType')
def get_parser(self, prog_name):
@@ -108,7 +105,6 @@ class ListVolumeType(lister.Lister):
class SetVolumeType(command.Command):
"""Set volume type command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.SetVolumeType')
def get_parser(self, prog_name):
@@ -142,7 +138,6 @@ class SetVolumeType(command.Command):
class UnsetVolumeType(command.Command):
"""Unset volume type command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.UnsetVolumeType')
def get_parser(self, prog_name):
diff --git a/openstackclient/volume/v1/volume.py b/openstackclient/volume/v1/volume.py
index 43253c40..f1e421f4 100644
--- a/openstackclient/volume/v1/volume.py
+++ b/openstackclient/volume/v1/volume.py
@@ -28,7 +28,6 @@ from openstackclient.common import utils
class CreateVolume(show.ShowOne):
"""Create volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.CreateVolume')
def get_parser(self, prog_name):
@@ -127,7 +126,6 @@ class CreateVolume(show.ShowOne):
class DeleteVolume(command.Command):
"""Delete volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.DeleteVolume')
def get_parser(self, prog_name):
@@ -161,7 +159,6 @@ class DeleteVolume(command.Command):
class ListVolume(lister.Lister):
"""List volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ListVolume')
def get_parser(self, prog_name):
@@ -218,7 +215,6 @@ class ListVolume(lister.Lister):
class SetVolume(command.Command):
"""Set volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.SetVolume')
def get_parser(self, prog_name):
@@ -274,7 +270,6 @@ class SetVolume(command.Command):
class ShowVolume(show.ShowOne):
"""Show volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.ShowVolume')
def get_parser(self, prog_name):
@@ -297,7 +292,6 @@ class ShowVolume(show.ShowOne):
class UnsetVolume(command.Command):
"""Unset volume command"""
- api = 'volume'
log = logging.getLogger(__name__ + '.UnsetVolume')
def get_parser(self, prog_name):