File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414"""Identity v2 Service Catalog action implementations"""
1515
16+ import logging
17+
1618from osc_lib .command import command
1719from osc_lib import exceptions
1820from osc_lib import utils
2123from openstackclient .i18n import _
2224
2325
26+ LOG = logging .getLogger (__name__ )
27+
28+
2429def _format_endpoints (eps = None ):
2530 if not eps :
2631 return ""
@@ -92,8 +97,7 @@ def take_action(self, parsed_args):
9297 break
9398
9499 if not data :
95- self .app .log .error (_ ('service %s not found\n ' ) %
96- parsed_args .service )
100+ LOG .error (_ ('service %s not found\n ' ), parsed_args .service )
97101 return ((), ())
98102
99103 return zip (* sorted (six .iteritems (data )))
Original file line number Diff line number Diff line change 1313
1414"""Identity v3 Service Catalog action implementations"""
1515
16+ import logging
17+
1618from osc_lib .command import command
1719from osc_lib import exceptions
1820from osc_lib import utils
2123from openstackclient .i18n import _
2224
2325
26+ LOG = logging .getLogger (__name__ )
27+
28+
2429def _format_endpoints (eps = None ):
2530 if not eps :
2631 return ""
@@ -87,8 +92,7 @@ def take_action(self, parsed_args):
8792 break
8893
8994 if not data :
90- self .app .log .error (_ ('service %s not found\n ' ) %
91- parsed_args .service )
95+ LOG .error (_ ('service %s not found\n ' ), parsed_args .service )
9296 return ((), ())
9397
9498 return zip (* sorted (six .iteritems (data )))
You can’t perform that action at this time.
0 commit comments