From 37e934e9cf0ec51dddcd32b6307a7c8d4ff82aac Mon Sep 17 00:00:00 2001 From: Mario Lenz Date: Mon, 6 May 2024 19:30:49 +0200 Subject: [PATCH] Drop self.params['annotation'] --- plugins/modules/guest.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/plugins/modules/guest.py b/plugins/modules/guest.py index 7f0821cbb..ab6556fd1 100644 --- a/plugins/modules/guest.py +++ b/plugins/modules/guest.py @@ -965,16 +965,6 @@ def deploy_vm(self): } return kwargs - else: - # set annotation - vm = task.info.result - if self.params['annotation']: - annotation_spec = vim.vm.ConfigSpec() - annotation_spec.annotation = str(self.params['annotation']) - task = vm.ReconfigVM_Task(annotation_spec) - self.wait_for_task(task) - if task.info.state == 'error': - return {'changed': self.change_applied, 'failed': True, 'msg': task.info.error.msg, 'op': 'annotation'} vm_facts = self.gather_facts(vm) return {'changed': self.change_applied, 'failed': False, 'instance': vm_facts} @@ -991,10 +981,6 @@ def reconfigure_vm(self): self.configure_encryption_params(vm_obj=self.current_vm_obj) self.configure_resource_alloc_info(vm_obj=self.current_vm_obj) - if self.params['annotation'] and self.current_vm_obj.config.annotation != self.params['annotation']: - self.configspec.annotation = str(self.params['annotation']) - self.change_detected = True - if self.params['resource_pool']: self.relospec.pool = self.get_resource_pool()