Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ovirt_vm: Fix getting console parameter #63325

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/ovirt/ovirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ def build_entity(self):
template = self.__get_template_with_version()
cluster = self.__get_cluster()
snapshot = self.__get_snapshot()
display = self.param('graphical_console', dict())
display = self.param('graphical_console') or dict()

disk_attachments = self.__get_storage_domain_and_all_template_disks(template)

Expand Down Expand Up @@ -1592,7 +1592,7 @@ def check_custom_compatibility_version():

cpu_mode = getattr(entity.cpu, 'mode')
vm_display = entity.display
provided_vm_display = self.param('graphical_console', {})
provided_vm_display = self.param('graphical_console') or dict()
return (
check_cpu_pinning() and
check_custom_properties() and
Expand Down