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
pull/37729/head
Murali krishnaswamy 7 years ago committed by ansibot
parent ec2e027980
commit 7a4c3e5cad

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

Loading…
Cancel
Save