File pacemaker-libcrmservice-list-systemd-agents-alphabetically.patch of Package pacemaker.8397

commit f80ee4a8d51d655ec3b5c13e88a2444ad0afdcde
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Fri Oct 13 17:10:23 2017 -0500

    Low: libcrmservice: list systemd agents alphabetically

diff --git a/lib/services/systemd.c b/lib/services/systemd.c
index 6adac46c3..464238653 100644
--- a/lib/services/systemd.c
+++ b/lib/services/systemd.c
@@ -451,13 +451,13 @@ systemd_unit_listall(void)
         }
 
         nfiles++;
-        // @TODO sort alphabetically
         units = g_list_prepend(units, unit_name);
     }
 
     dbus_message_unref(reply);
 
     crm_trace("Found %d manageable systemd unit files", nfiles);
+    units = g_list_sort(units, crm_alpha_sort);
     return units;
 }
 
openSUSE Build Service is sponsored by