Exemplo n.º 1
0
 def handle_update(self):
     u = firmwaremanager.Updater(self.node, self.ipmicmd.update_firmware,
                                 self.inputdata.filename, self.tenant,
                                 bank=self.inputdata.bank)
     self.output.put(
         msg.CreatedResource(
             'nodes/{0}/inventory/firmware/updates/active/{1}'.format(
                 self.node, u.name)))
Exemplo n.º 2
0
 def handle_media_upload(self):
     u = firmwaremanager.Updater(self.node,
                                 self.ipmicmd.upload_media,
                                 self.inputdata.filename,
                                 self.tenant,
                                 type='mediaupload')
     self.output.put(
         msg.CreatedResource('nodes/{0}/media/uploads/{1}'.format(
             self.node, u.name)))