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

wrap all dry_run use cases in generic function #107

Open
asmorodskyi opened this issue Feb 1, 2021 · 0 comments
Open

wrap all dry_run use cases in generic function #107

asmorodskyi opened this issue Feb 1, 2021 · 0 comments

Comments

@asmorodskyi
Copy link
Collaborator

currently project has a lot of duplicating code like

if self.dry_run: 
   log_info ( 'No code execution due to dry_run') 
else: 
  execute something

this can and should be refactored into generic function which will accept function to call as parameter and will replace all this if/else blocks with one-liner

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

No branches or pull requests

1 participant