Skip to content

Commit e3075d2

Browse files
committed
Switch more generateconfs defaults to AUTO with dynamic look up for greater
flexibility on non-deployment setups and in order to eventually be able to eliminate the dynamic values from PR72 in mig.shared.defaults .
1 parent 2a83661 commit e3075d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mig/shared/install.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def generate_confs(
440440
if group == keyword_auto:
441441
group = expanded['group'] = grp.getgrgid(os.getgid())[0]
442442

443-
if admin_email is keyword_auto:
443+
if admin_email == keyword_auto:
444444
admin_email = expanded['admin_email'] = user
445445

446446
# Finalize a destination path up-front
@@ -449,13 +449,13 @@ def generate_confs(
449449

450450
# Expand any path information marked as "AUTO" based on the environment
451451
# NOTE: we do NOT follow symlinks here as they should remain transparent
452-
if mig_code is keyword_auto:
452+
if mig_code == keyword_auto:
453453
mig_code = expanded['mig_code'] = os.path.abspath(os.path.join(
454454
cmd_grpar_dir, 'mig'))
455-
if mig_state is keyword_auto:
455+
if mig_state == keyword_auto:
456456
mig_state = expanded['mig_state'] = os.path.abspath(os.path.join(
457457
cmd_grpar_dir, 'state'))
458-
if mig_certs is keyword_auto:
458+
if mig_certs == keyword_auto:
459459
mig_certs = expanded['mig_certs'] = os.path.abspath(os.path.join(
460460
cmd_grpar_dir, 'certs'))
461461

0 commit comments

Comments
 (0)