예제 #1
0
def serial_file(ctx, input_file):
    """
    Import serial file
    """
    vmanage_utilities = Utilities(ctx.auth, ctx.host)

    click.echo(f'Uploading serial file... {input_file}')
    result = vmanage_utilities.upload_file(input_file)
    click.echo(result)
예제 #2
0
 def load_serial_file(self):
     self.__logger.info(f'[orange1]Load license file')
     vmanage_utilities = Utilities(self.vm_auth, self.vm_mgmt_ip)
     result = vmanage_utilities.upload_file(self.serial_file)
     self.__logger.info(result)