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)
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)