From c2186365cc58e55d7adef3cce8c6fd39206ff231 Mon Sep 17 00:00:00 2001
From: Patrice RINGOT <patrice.ringot@loria.fr>
Date: Sun, 15 Dec 2019 00:04:21 +0100
Subject: [PATCH] [puppet/bindg5k] bug 11169: add record label to sort A
 resources - required for Ruby version 2.1.5p273 (jenkins.nancy as of
 2019-12-15)

---
 lib/refrepo/gen/puppet/bindg5k.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/refrepo/gen/puppet/bindg5k.rb b/lib/refrepo/gen/puppet/bindg5k.rb
index 7ffa2feb152..03498db9c1b 100644
--- a/lib/refrepo/gen/puppet/bindg5k.rb
+++ b/lib/refrepo/gen/puppet/bindg5k.rb
@@ -323,7 +323,7 @@ def sort_records(records)
   in_a.sort_by!{ |record|
     record.address.split('.').map{ |octet|
       octet.to_i
-    }
+    }.push(record.label)
   }
   sorted_records += in_a
   in_aaaa.sort_by!{ |record|
-- 
GitLab