Merge "refactoring - return the same grains regardless of ceph version. add fsid"
diff --git a/_grains/ceph.py b/_grains/ceph.py
index 981ec18..e9f38a6 100644
--- a/_grains/ceph.py
+++ b/_grains/ceph.py
@@ -34,6 +34,8 @@
                 try:
                     with open('/var/lib/ceph/osd/%s/whoami' % osd) as file:
                         dev_id = file.readline().strip()
+                    with open('/var/lib/ceph/osd/%s/fsid' % osd) as file:
+                        fsid = file.readline().strip()
                     path = os.readlink('/var/lib/ceph/osd/%s/block' % osd)
                 except IOError:
                     continue            
@@ -46,6 +48,7 @@
                     cmd = "pvs  | grep %s | awk '{print $1}'" % path.split('/')[-2]
                     dev = check_output(cmd, shell=True).strip()
                 devices[dev_id] = {}
+                devices[dev_id]['fsid'] = fsid
                 devices[dev_id]['path'] = path
                 devices[dev_id]['dev'] = dev