From 1406600eaecda6d20a39fd95d8bc25abb7cfd375 Mon Sep 17 00:00:00 2001 From: Seblu Date: Tue, 25 Jan 2011 19:14:31 +0100 Subject: [PATCH] add os tql tag --- TQL | 1 + cccli/handler.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TQL b/TQL index 4b33745..6675537 100644 --- a/TQL +++ b/TQL @@ -99,6 +99,7 @@ arch: hardware architecture (x86/x64) uname: output of uname command uptime: uptime of hostname load: load average +os: operating system (linux/windows) alloc: host is allowed to be selected to a migration hvm: hardware virtualisation enabled nvm: vm count on an hypervisor diff --git a/cccli/handler.py b/cccli/handler.py index 916960f..216ea74 100644 --- a/cccli/handler.py +++ b/cccli/handler.py @@ -43,7 +43,7 @@ class CliHandler(RpcHandler): def get_tag_os(self, resolve): '''Return Operating system tag''' if resolve: - return { "value": platform.system(), "ttl": -1 } + return { "value": platform.system().lower(), "ttl": -1 } return { "ttl": -1 } def get_tag_uname(self, resolve): -- GitLab