Skip to content

Commit

Permalink
Add a info method to the container drivers parent class
Browse files Browse the repository at this point in the history
To feed the resource 'name' and 'guestos' keys to the collector.
  • Loading branch information
cvaroqui committed Dec 5, 2017
1 parent 41f3bc3 commit bfd9bfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/resContainer.py
Expand Up @@ -38,6 +38,16 @@ def __init__(self,
self.runmethod = rcEnv.rsh.split() + [name]
self.booted = False

def info(self):
"""
Contribute resource key/val pairs to the service's resinfo.
"""
data = [
["name", self.name],
["guestos", self.guestos],
]
return self.fmt_info(data)

@lazy
def vm_hostname(self):
try:
Expand Down

0 comments on commit bfd9bfb

Please sign in to comment.