]> andersk Git - moira.git/blobdiff - clients/blanche/blanche.c
Make tag_member_of_list work for MACHINE members.
[moira.git] / clients / blanche / blanche.c
index 8de8cdebec20b35d2353482422c9ff89a0e4d0da..d11baad50bfe55f246b7dcf9f9ca807bfdceeefc 100644 (file)
@@ -364,7 +364,7 @@ int main(int argc, char **argv)
 
   /* If none of {users,strings,lists,kerberos,machines} specified, 
      turn them all on */
-  if (!(showusers || showstrings || showlists || showkerberos))
+  if (!(showusers || showstrings || showlists || showkerberos || showmachines))
     showusers = showstrings = showlists = showkerberos = showmachines = 1;
 
   /* fire up Moira */
@@ -1031,6 +1031,16 @@ int main(int argc, char **argv)
                      memberstruct->name, listname);
              success = 0;
            }
+       case M_MACHINE:
+         membervec[1] = "MACHINE";
+         status = mr_query("tag_member_of_list", 4, membervec,
+                           NULL, NULL);
+         if (status != MR_SUCCESS)
+           {
+             com_err(whoami, status, "while adding member %s to %s",
+                     memberstruct->name, listname);
+             success = 0;
+           }
        }
     }
 
This page took 0.062255 seconds and 4 git commands to generate.