Skip to content

Commit

Permalink
Expose CPU attributes on the vm object
Browse files Browse the repository at this point in the history
Signed-off-by: gbenhaim <[email protected]>
  • Loading branch information
gbenhaim committed Jun 4, 2018
1 parent 1c38225 commit e75a4b2
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 e75a4b2

Please sign in to comment.