From fd6f0cb4b4a71ef5c142410d351e47c455289bf7 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 5 Jun 2014 15:09:43 +0200 Subject: [PATCH] Update facts.py --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 6df5db7510..4c8d676e23 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -140,7 +140,7 @@ class Facts(object): days = int(raw.split()[2]) if 'min' in raw: hours = 0 - minutes = int(raw[4]) + minutes = int(raw.split()[4]) else: hours, minutes = map(int, raw.split()[4].split(':')) self.facts['uptime'] = days*24*60*60 + hours*60*60 + minutes*60