From 7a4c3e5cadc26c86d664e5cb05d0188927d53b81 Mon Sep 17 00:00:00 2001 From: Murali krishnaswamy Date: Wed, 21 Mar 2018 09:57:00 -0400 Subject: [PATCH] ovrit_cluster: fix for CPU arch entity #37425 (#37436) * ovrit_cluster: fix for CPU arch entity #37425 * Corrected Indentation * Condition to check if `architecture` is defined --- lib/ansible/modules/cloud/ovirt/ovirt_cluster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py index e282c0306aa..9b61636b4a6 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_cluster.py @@ -485,7 +485,9 @@ class ClustersModule(BaseModule): name=self.param('network'), ) if self.param('network') else None, cpu=otypes.Cpu( - architecture=self.param('cpu_arch'), + architecture=otypes.Architecture( + self.param('cpu_arch') + ) if self.param('cpu_arch') else None, type=self.param('cpu_type'), ) if ( self.param('cpu_arch') or self.param('cpu_type')