solumclient/solum.py
def show(self):
        """Show a component's resource."""
        self.parser.add_argument('component_uuid',
                                 help="Component uuid or name")
        args = self.parser.parse_args()
        response = self.client.components.find(name_or_id=args.component_uuid)
        fields = ['uuid', 'name', 'description', 'uri', 'assembly_uuid']
        data = dict([(f, getattr(response, f, ''))
                     for f in fields])
        cliutils.print_dict(data, wrap=72)
Show a component's resource.
Show a component's resource.
Show a component ' s resource .
def show(self):
        self.parser.add_argument('component_uuid',
                                 help="Component uuid or name")
        args = self.parser.parse_args()
        response = self.client.components.find(name_or_id=args.component_uuid)
        fields = ['uuid', 'name', 'description', 'uri', 'assembly_uuid']
        data = dict([(f, getattr(response, f, ''))
                     for f in fields])
        cliutils.print_dict(data, wrap=72)
def show ( self ) : self . parser . add_argument ( 'component_uuid' , help = "Component uuid or name" ) args = self . parser . parse_args ( ) response = self . client . components . find ( name_or_id = args . component_uuid ) fields = [ 'uuid' , 'name' , 'description' , 'uri' , 'assembly_uuid' ] data = dict ( [ ( f , getattr ( response , f , '' ) ) for f in fields ] ) cliutils . print_dict ( data , wrap = 72 )
Show a component's resource.
Show a component ' s resource .
"""Show a component's resource."""
self