Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve --configfile when running cli.py configure #279

Merged
merged 1 commit into from
Aug 29, 2018

Conversation

bitphage
Copy link
Collaborator

When editing a worker Basestrategy reads worker config but it used
default config path. Fix this by passing correct config path.

@bitphage bitphage force-pushed the preserve-configfile-when-configure branch from c2f55aa to c86e6a9 Compare August 16, 2018 12:24
@@ -158,7 +158,7 @@ def __init__(
if config:
self.config = config
else:
self.config = config = Config.get_worker_config_file(name)
self.config = config = Config.get_worker_config_file(name, path=config.config_file)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't reference config here since it's None

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, just passing config is enough, updated a PR.

@bitphage bitphage force-pushed the preserve-configfile-when-configure branch from c86e6a9 to 965dc48 Compare August 17, 2018 13:11
@bitphage
Copy link
Collaborator Author

Can't reference config here since it's None

@mikakoi you're right, just passing config is enough, updated a PR.

When editing a worker Basestrategy reads worker config but it used
default config path. Fix this by passing correct config.
@bitphage bitphage force-pushed the preserve-configfile-when-configure branch from 965dc48 to 7b6d218 Compare August 17, 2018 17:13
@mikakoi mikakoi merged commit 7b6d218 into Codaone:master Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants