Return the current environmental data.

This commit is contained in:
Jeffrey Townsend
2016-07-14 17:40:29 +00:00
parent 1d878e046d
commit 80822e7f66

View File

@@ -260,7 +260,7 @@ class OnlPlatformBase(object):
def environment(self):
yamlstr = subprocess.check_output(['/bin/onlpd', '-r', '-y'])
data = yaml.load(yamlstr);
return json.dumps(data, indent=4)
return data
def __str__(self):
s = """Model: %s