Skip to content

Commit

Permalink
Merge pull request #735 from lago-project/expose_cpu_attributes_on_th…
Browse files Browse the repository at this point in the history
…e_vm_object

Expose CPU attributes on the vm object
  • Loading branch information
ovirt-infra authored Jun 4, 2018
2 parents 1c38225 + e75a4b2 commit 6c17f75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lago/plugins/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,14 @@ def groups(self):
else:
return groups

@property
def cpu_vendor(self):
return getattr(self.provider, 'cpu_vendor')

@property
def cpu_model(self):
return getattr(self.provider, 'cpu_model')

def name(self):
return str(self._spec['name'])

Expand Down

0 comments on commit 6c17f75

Please sign in to comment.