Merge "osc-lib: command"

This commit is contained in:
Jenkins 2016-06-14 06:45:17 +00:00 committed by Gerrit Code Review
commit 2c92b60f45
82 changed files with 83 additions and 91 deletions

View File

@ -153,13 +153,11 @@ the plugin commands:
# osc-lib interfaces available to plugins:
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import logs
from osc_lib import utils
# OSC common interfaces available to plugins:
from openstackclient.common import command
class DeleteMypluginobject(command.Command):
"""Delete mypluginobject"""

View File

@ -16,10 +16,10 @@
import copy
from novaclient import exceptions as nova_exceptions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -13,9 +13,9 @@
"""Configuration action implementations"""
from osc_lib.command import command
import six
from openstackclient.common import command
from openstackclient.i18n import _
REDACTED = "<redacted>"

View File

@ -17,9 +17,9 @@
import itertools
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,9 +17,9 @@
import itertools
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -17,10 +17,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import itertools
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -13,7 +13,7 @@
"""Timing Implementation"""
from openstackclient.common import command
from osc_lib.command import command
class Timing(command.Lister):

View File

@ -15,11 +15,11 @@
"""Agent action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
"""Compute v2 Aggregate action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import sys
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,10 +15,9 @@
"""Fixed IP action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
class AddFixedIP(command.Command):
"""Add fixed IP address to server"""

View File

@ -16,11 +16,11 @@
"""Flavor action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -15,10 +15,9 @@
"""Floating IP action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
class AddFloatingIP(command.Command):
"""Add floating IP address to server"""

View File

@ -15,10 +15,9 @@
"""Floating IP Pool action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
class ListFloatingIPPool(command.Lister):
"""List pools of floating IP addresses"""

View File

@ -15,9 +15,9 @@
"""Host action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
import re
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,7 +16,7 @@
import six
from openstackclient.common import command
from osc_lib.command import command
class ShowHypervisorStats(command.ShowOne):

View File

@ -19,11 +19,11 @@ import io
import os
import sys
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -22,6 +22,7 @@ import os
import sys
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
@ -31,7 +32,6 @@ try:
except ImportError:
from novaclient.v1_1 import servers
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -17,12 +17,12 @@
import sys
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from oslo_utils import importutils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,10 +15,10 @@
"""Compute v2 Server Group action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,10 +15,10 @@
"""Service action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import datetime
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -13,11 +13,11 @@
"""Identity v2 Service Catalog action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
"""Identity v2 EC2 Credentials action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,10 +15,10 @@
"""Endpoint action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -17,10 +17,10 @@
from keystoneauth1 import exceptions as ks_exc
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,11 +16,11 @@
"""Identity v2 Role action implementations"""
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,11 +17,11 @@
import argparse
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -15,10 +15,10 @@
"""Identity v2 Token action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
import six
from openstackclient.common import command
from openstackclient.common import exceptions
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
"""Identity v2.0 User action implementations"""
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -13,11 +13,11 @@
"""Identity v3 Service Catalog action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,10 +15,10 @@
"""Identity v3 Credential action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import sys
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -12,10 +12,10 @@
"""Identity v3 EC2 Credentials action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -17,10 +17,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -14,10 +14,10 @@
"""Identity v3 Protocols actions implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import sys
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -13,10 +13,10 @@
"""Identity v3 IdentityProvider action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,11 +17,11 @@
import json
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
from keystoneauth1 import exceptions as ks_exc
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -13,10 +13,10 @@
"""Identity v3 Region action implementations"""
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import sys
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -13,9 +13,9 @@
"""Identity v3 Assignment action implementations """
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -17,10 +17,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -15,10 +15,10 @@
import sys
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,11 +15,11 @@
"""Identity v3 Token action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -15,10 +15,10 @@
import datetime
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -17,10 +17,10 @@ The first step of federated auth is to fetch an unscoped token. From there,
the user can list domains and projects they are allowed to access, and request
a scoped token."""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -19,10 +19,10 @@ import copy
import sys
from keystoneauth1 import exceptions as ks_exc
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -27,11 +27,11 @@ else:
from glanceclient.common import utils as gc_utils
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.api import utils as api_utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -19,12 +19,12 @@ import argparse
from glanceclient.common import utils as gc_utils
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.api import utils as api_utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common

View File

@ -13,10 +13,10 @@
import abc
from osc_lib.command import command
from osc_lib import exceptions
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -13,10 +13,10 @@
"""Address scope action implementations"""
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -13,9 +13,9 @@
"""IP Availability Info implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -13,9 +13,9 @@
"""Network action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common
from openstackclient.network import common

View File

@ -15,9 +15,9 @@
# TODO(rtheis): Add description and name properties when support is available.
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@ import argparse
import logging
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -18,9 +18,9 @@ import json
import logging
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -16,10 +16,10 @@
import copy
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -14,9 +14,9 @@
"""Subnet pool action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -14,11 +14,10 @@
"""Account v1 action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
class SetAccount(command.Command):
"""Set account properties"""

View File

@ -17,11 +17,10 @@
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
class CreateContainer(command.Lister):
"""Create new container"""

View File

@ -17,11 +17,10 @@
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
class CreateObject(command.Lister):
"""Upload object to container"""

View File

@ -14,9 +14,9 @@
import mock
from osc_lib.command import command
from osc_lib import exceptions
from openstackclient.common import command
from openstackclient.tests import fakes as test_fakes
from openstackclient.tests import utils as test_utils

View File

@ -17,10 +17,10 @@
import copy
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
"""Volume v1 QoS action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -14,9 +14,9 @@
"""Service action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import copy
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -18,10 +18,10 @@
import argparse
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -14,9 +14,9 @@
"""Volume v2 transfer action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
"""Volume v1 Type action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
import copy
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -16,10 +16,10 @@
"""Volume v2 QoS action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -14,9 +14,9 @@
"""Service action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
import copy
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -17,10 +17,10 @@
import copy
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common

View File

@ -14,9 +14,9 @@
"""Volume v2 transfer action implementations"""
from osc_lib.command import command
from osc_lib import utils
from openstackclient.common import command
from openstackclient.i18n import _

View File

@ -15,11 +15,11 @@
"""Volume v2 Type action implementations"""
from osc_lib.cli import parseractions
from osc_lib.command import command
from osc_lib import exceptions
from osc_lib import utils
import six
from openstackclient.common import command
from openstackclient.i18n import _
from openstackclient.identity import common as identity_common