Skip to content

Commit

Permalink
Update Tests/iaas/flavor-naming/flavor_names.py
Browse files Browse the repository at this point in the history
Yeah, that's better

Co-authored-by: Matthias Büchse <[email protected]>
Signed-off-by: Kurt Garloff <[email protected]>
  • Loading branch information
garloff and mbuechse authored May 16, 2024
1 parent dd11d07 commit 937e123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/iaas/flavor-naming/flavor_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def shorten(self):
if self.hype is None and self.hwvirt is None and self.cpubrand is None:
return self
# For non-x86-64, don't strip out CPU brand for short name, as it contains the architecture
if self.cpubrand and self.cpubrand.cpuvendor != 'i' and self.cpubrand.cpuvendor != 'z':
if self.cpubrand and self.cpubrand.cpuvendor not in ('i', 'z'):
return Flavorname(cpuram=self.cpuram, disk=self.disk,
cpubrand=CPUBrand(self.cpubrand.cpuvendor),
gpu=self.gpu, ib=self.ib)
Expand Down

0 comments on commit 937e123

Please sign in to comment.