Skip to content

Commit

Permalink
ovrit_cluster: fix for CPU arch entity ansible#37425 (ansible#37436)
Browse files Browse the repository at this point in the history
* ovrit_cluster: fix for CPU arch entity ansible#37425

* Corrected Indentation

* Condition to check if `architecture` is defined
  • Loading branch information
Murali krishnaswamy authored and machacekondra committed Apr 5, 2018
1 parent adfb65f commit 3f4653f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ansible/modules/cloud/ovirt/ovirt_cluster.py
Expand Up @@ -485,7 +485,9 @@ def build_entity(self):
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')
Expand Down

0 comments on commit 3f4653f

Please sign in to comment.