LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File revert-log-util.diff of Package python-openstackclient (Project home:garloff:OTC:python-save)

Index: python-openstackclient-1.5.0/openstackclient/volume/v2/qos_specs.py
===================================================================
--- python-openstackclient-1.5.0.orig/openstackclient/volume/v2/qos_specs.py
+++ python-openstackclient-1.5.0/openstackclient/volume/v2/qos_specs.py
@@ -44,10 +44,10 @@ class AssociateQos(command.Command):
             help='Volume type to associate the QoS (name or ID)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_spec = utils.find_resource(volume_client.qos_specs,
                                        parsed_args.qos_spec)
         volume_type = utils.find_resource(volume_client.volume_types,
@@ -87,10 +87,10 @@ class CreateQos(show.ShowOne):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         specs = {}
         specs.update({'consumer': parsed_args.consumer})
 
@@ -116,10 +116,10 @@ class DeleteQos(command.Command):
             help='QoS specification(s) to delete (name or ID)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         for qos in parsed_args.qos_specs:
             qos_spec = utils.find_resource(volume_client.qos_specs, qos)
             volume_client.qos_specs.delete(qos_spec.id)
@@ -152,10 +152,10 @@ class DisassociateQos(command.Command):
         )
 
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_spec = utils.find_resource(volume_client.qos_specs,
                                        parsed_args.qos_spec)
 
@@ -173,10 +173,10 @@ class ListQos(lister.Lister):
     """List QoS specifications"""
 
     log = logging.getLogger(__name__ + '.ListQos')
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_specs_list = volume_client.qos_specs.list()
 
         for qos in qos_specs_list:
@@ -217,10 +217,10 @@ class SetQos(command.Command):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_spec = utils.find_resource(volume_client.qos_specs,
                                        parsed_args.qos_spec)
 
@@ -246,10 +246,10 @@ class ShowQos(show.ShowOne):
             help='QoS specification to display (name or ID)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_spec = utils.find_resource(volume_client.qos_specs,
                                        parsed_args.qos_spec)
 
@@ -286,10 +286,10 @@ class UnsetQos(command.Command):
                  '(repeat option to unset multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         qos_spec = utils.find_resource(volume_client.qos_specs,
                                        parsed_args.qos_spec)
 
Index: python-openstackclient-1.5.0/openstackclient/volume/v2/snapshot.py
===================================================================
--- python-openstackclient-1.5.0.orig/openstackclient/volume/v2/snapshot.py
+++ python-openstackclient-1.5.0/openstackclient/volume/v2/snapshot.py
@@ -185,10 +185,10 @@ class SetSnapshot(command.Command):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         snapshot = utils.find_resource(volume_client.volume_snapshots,
                                        parsed_args.snapshot)
 
@@ -255,10 +255,10 @@ class UnsetSnapshot(command.Command):
                  '(repeat to remove multiple values)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         snapshot = utils.find_resource(
             volume_client.volume_snapshots, parsed_args.snapshot)
 
Index: python-openstackclient-1.5.0/openstackclient/volume/v2/volume.py
===================================================================
--- python-openstackclient-1.5.0.orig/openstackclient/volume/v2/volume.py
+++ python-openstackclient-1.5.0/openstackclient/volume/v2/volume.py
@@ -222,10 +222,10 @@ class ListVolume(lister.Lister):
             help='Filter results by status',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
 
         volume_client = self.app.client_manager.volume
         compute_client = self.app.client_manager.compute
 
@@ -334,10 +334,10 @@ class SetVolume(show.ShowOne):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         volume = utils.find_resource(volume_client.volumes, parsed_args.volume)
 
         if parsed_args.size:
@@ -382,10 +382,10 @@ class ShowVolume(show.ShowOne):
             help="Volume to display (name or ID)"
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         volume = utils.find_resource(volume_client.volumes, parsed_args.volume)
 
         # Remove key links from being displayed
@@ -415,10 +415,10 @@ class UnsetVolume(command.Command):
                  '(repeat option to remove multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         volume = utils.find_resource(
             volume_client.volumes, parsed_args.volume)
 
Index: python-openstackclient-1.5.0/openstackclient/volume/v2/volume_type.py
===================================================================
--- python-openstackclient-1.5.0.orig/openstackclient/volume/v2/volume_type.py
+++ python-openstackclient-1.5.0/openstackclient/volume/v2/volume_type.py
@@ -65,10 +65,10 @@ class CreateVolumeType(show.ShowOne):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
 
         volume_client = self.app.client_manager.volume
 
         kwargs = {}
@@ -126,10 +126,10 @@ class ListVolumeType(lister.Lister):
             default=False,
             help='List additional fields in output')
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         if parsed_args.long:
             columns = ['ID', 'Name', 'Description', 'Extra Specs']
             column_headers = ['ID', 'Name', 'Description', 'Properties']
         else:
@@ -173,10 +173,10 @@ class SetVolumeType(command.Command):
                  '(repeat option to set multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         volume_type = utils.find_resource(
             volume_client.volume_types, parsed_args.volume_type)
 
@@ -249,10 +249,10 @@ class UnsetVolumeType(command.Command):
                  '(repeat option to remove multiple properties)',
         )
         return parser
 
-    @utils.log_method(log)
     def take_action(self, parsed_args):
+        self.log.debug('take_action(%s)', parsed_args)
         volume_client = self.app.client_manager.volume
         volume_type = utils.find_resource(
             volume_client.volume_types,
             parsed_args.volume_type,