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
This commit is contained in:
Murali krishnaswamy 2018-03-21 09:57:00 -04:00 committed by ansibot
parent ec2e027980
commit 7a4c3e5cad

View file

@ -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')