+#!/usr/bin/python
+
+import sys
+
+def file_to_dict(file):
+ convert = {
+ 'iptables_status' : "list",
+ 'rpm_versions' : "list",
+ 'running_slices' : "list",
+ }
+ f = open(file, 'r')
+ d = {}
+ for line in f:
+ l = line[:-1]
+ s = l.split()
+ key = s[0]
+ val = " ".join(s[2:])
+ d[key] = val
+ if key in convert:
+ if convert[key] == "list":
+ d[key] = d[key].split()
+ if 'type' not in d:
+ d['type'] = "node-status-v0"
+ return d
+
+