def prepare_url(self, redfishConfig, command): # Usage: redfish urls [startingurl] self.allLinks = {} words = command.split(' ') if (len(words) > 2): self.startingurl = words[2] else: RedfishSystem.initialize_service_root_uris(redfishConfig) self.startingurl = RedfishSystem.get_uri(redfishConfig, 'Root') Trace.log( TraceLevel.INFO, ' ++ CommandHandler: redfish urls // starting url ({})'.format( self.startingurl)) return (self.startingurl)
def prepare_url(self, redfishConfig, command): RedfishSystem.initialize_service_root_uris(redfishConfig) return (RedfishSystem.get_uri(redfishConfig, 'metadata'))