Skip to content

Commit 667d50a

Browse files
authored
Fix for #458
Fix for log output when --adobe-only-user-action is overridden with a cmd line option different than invocation_defaults value
1 parent 47e31b6 commit 667d50a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

user_sync/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ def load_invocation_options(self):
152152
raise AssertionException('You cannot specify --adobe-only-user-action when using "push" strategy')
153153
self.logger.info("Strategy push: ignoring default adobe-only-user-action")
154154
else:
155-
adobe_action_spec = self.args['adobe_only_user_action'] or options['adobe_only_user_action']
155+
if self.args['adobe_only_user_action']:
156+
adobe_action_spec = self.args['adobe_only_user_action']
157+
options['adobe_only_user_action'] = self.args['adobe_only_user_action']
158+
else:
159+
adobe_action_spec = options['adobe_only_user_action']
156160
adobe_action = user_sync.helper.normalize_string(adobe_action_spec[0])
157161
if adobe_action == 'preserve':
158162
pass # no option settings needed

0 commit comments

Comments
 (0)