Blame SOURCES/0001-Issue-5254-dscreate-create-template-regression-due-t.patch

854bad
From 88c1e83e02a59f4811f06757daced6c821fa54d9 Mon Sep 17 00:00:00 2001
854bad
From: progier389 <progier@redhat.com>
854bad
Date: Mon, 11 Apr 2022 16:15:07 +0200
854bad
Subject: [PATCH] Issue 5254 - dscreate create-template regression due to
854bad
 5a3bdc336 (#5255)
854bad
854bad
dscreate create-template regression due to 829ea4113..5a3bdc336
854bad
  (default value for template_file parameter was unwillingly changed to 'None' (instead of None))
854bad
854bad
Issue: 5254   https://github.com/389ds/389-ds-base/issues/5254
854bad
854bad
Reviewed by:
854bad
854bad
(cherry picked from commit 45af34013f8bdd34f939d36b16776413e13c0a51)
854bad
---
854bad
 src/lib389/cli/dscreate | 2 +-
854bad
 1 file changed, 1 insertion(+), 1 deletion(-)
854bad
854bad
diff --git a/src/lib389/cli/dscreate b/src/lib389/cli/dscreate
854bad
index 0b41166cc..aa3878ff9 100755
854bad
--- a/src/lib389/cli/dscreate
854bad
+++ b/src/lib389/cli/dscreate
854bad
@@ -51,7 +51,7 @@ interactive_parser.set_defaults(func=cli_instance.instance_create_interactive)
854bad
 template_parser = subparsers.add_parser('create-template', help="Display an example inf answer file, or provide a file name to write it to disk.")
854bad
 template_parser.add_argument('--advanced', action='store_true', default=False,
854bad
     help="Add advanced options to the template - changing the advanced options may make your instance install fail")
854bad
-template_parser.add_argument('template_file', nargs="?", default='None', help="Write example template to this file")
854bad
+template_parser.add_argument('template_file', nargs="?", default=None, help="Write example template to this file")
854bad
 template_parser.set_defaults(func=cli_instance.instance_example)
854bad
 
854bad
 subtree_parser = subparsers.add_parser('ds-root', help="Prepare a root directory in which non root user can create, run and administer instances.")
854bad
-- 
854bad
2.37.3
854bad