File pacemaker-crm_resource-without-arguments.patch of Package pacemaker.14737

commit 0210126b515466203e0c36750ca431d921201573
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Fri Oct 6 17:22:47 2017 -0500

    Low: tools: allow crm_resource to be called without arguments
    
    rsc_cmd defaults to 'L', so it doesn't make sense to error out

diff --git a/tools/crm_resource.c b/tools/crm_resource.c
index 021df7b08..3643e4bb2 100644
--- a/tools/crm_resource.c
+++ b/tools/crm_resource.c
@@ -388,10 +388,6 @@ main(int argc, char **argv)
     crm_set_options(NULL, "(query|command) [options]", long_options,
                     "Perform tasks related to cluster resources.\nAllows resources to be queried (definition and location), modified, and moved around the cluster.\n");
 
-    if (argc < 2) {
-        crm_help('?', EX_USAGE);
-    }
-
     while (1) {
         flag = crm_get_option_long(argc, argv, &option_index, &longname);
         if (flag == -1)
openSUSE Build Service is sponsored by