Blame SOURCES/0012-Issue-4959-Invalid-etc-hosts-setup-can-cause-isLocal.patch

51b5b9
From 2c6653edef793d46815e6df607e55d68e14fe232 Mon Sep 17 00:00:00 2001
51b5b9
From: spike <spike@fedoraproject.org>
51b5b9
Date: Fri, 5 Nov 2021 13:56:41 +0100
51b5b9
Subject: [PATCH 12/12] Issue 4959 - Invalid /etc/hosts setup can cause
51b5b9
 isLocalHost to fail.
51b5b9
51b5b9
Description: Use local_simple_allocate in dsctl so that isLocal is always set properly
51b5b9
51b5b9
Relates: https://github.com/389ds/389-ds-base/issues/4959
51b5b9
51b5b9
Reviewed by: @droideck (Thanks!)
51b5b9
---
51b5b9
 src/lib389/cli/dsctl | 2 +-
51b5b9
 1 file changed, 1 insertion(+), 1 deletion(-)
51b5b9
51b5b9
diff --git a/src/lib389/cli/dsctl b/src/lib389/cli/dsctl
51b5b9
index b6c42b5cc..d2ea6cd29 100755
51b5b9
--- a/src/lib389/cli/dsctl
51b5b9
+++ b/src/lib389/cli/dsctl
51b5b9
@@ -135,7 +135,7 @@ if __name__ == '__main__':
51b5b9
         log.error("Unable to access instance information. Are you running as the correct user? (usually dirsrv or root)")
51b5b9
         sys.exit(1)
51b5b9
 
51b5b9
-    inst.allocate(insts[0])
51b5b9
+    inst.local_simple_allocate(insts[0]['server-id'])
51b5b9
     log.debug('Instance allocated')
51b5b9
 
51b5b9
     try:
51b5b9
-- 
51b5b9
2.31.1
51b5b9