mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 09:17:08 +00:00
Return the current environmental data.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user