Read the disk templates part of the ipolicy
[ganeti-local] / htools / Ganeti / HTools / Node.hs
index c7dbaa7..f3a7491 100644 (file)
@@ -328,11 +328,10 @@ removePri t inst =
 removeSec :: Node -> Instance.Instance -> Node
 removeSec t inst =
   let iname = Instance.idx inst
-      uses_disk = Instance.usesLocalStorage inst
       cur_dsk = fDsk t
       pnode = Instance.pNode inst
       new_slist = delete iname (sList t)
-      new_dsk = if uses_disk
+      new_dsk = if Instance.usesLocalStorage inst
                   then cur_dsk + Instance.dsk inst
                   else cur_dsk
       old_peers = peers t