Skip to content

Commit

Permalink
ovirt_vm: check if user inputed graphical protocol (#542)
Browse files Browse the repository at this point in the history
* ovirt_vm: check if user inputed graphical protocol

* Add changelog
  • Loading branch information
mnecas committed Jun 16, 2022
1 parent bfa4bf6 commit 0c2c0d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ovirt_vm - check if user inputed graphical protocol (https://github.com/oVirt/ovirt-ansible-collection/pull/542).
2 changes: 1 addition & 1 deletion plugins/modules/ovirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,7 @@ def __attach_graphical_console(self, entity):
return True

# Update consoles:
if sorted(protocol) != sorted(current_protocols):
if protocol is not None and sorted(protocol) != sorted(current_protocols):
if not self._module.check_mode:
for gc in graphical_consoles:
gcs_service.console_service(gc.id).remove()
Expand Down

0 comments on commit 0c2c0d0

Please sign in to comment.