* ovrit_cluster: fix for CPU arch entity #37425 * Corrected Indentation * Condition to check if `architecture` is defined
This commit is contained in:
parent
ec2e027980
commit
7a4c3e5cad
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue