]> andersk Git - moira.git/commitdiff
Make tag_member_of_list work for MACHINE members.
authorzacheiss <zacheiss>
Thu, 16 Apr 2009 19:52:11 +0000 (19:52 +0000)
committerzacheiss <zacheiss>
Thu, 16 Apr 2009 19:52:11 +0000 (19:52 +0000)
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.046507 seconds and 5 git commands to generate.