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

1502821: Remove undocumented, broken env var "VIRTWHO_DISABLE_ASYNC" #102

Merged
merged 2 commits into from Oct 30, 2017

Conversation

cnsnyder
Copy link
Member

The is an env var that is undocumented and broken that half disables async hypervisor checkins.

This PR fixes it's broken functionality by removing it entirely (after discussion with QE).

@cnsnyder
Copy link
Member Author

if is_async and os.environ.get('VIRTWHO_DISABLE_ASYNC', '').lower() in ['1', 'yes', 'true']:
self.logger.info("Async reports are supported but explicitly disabled")
is_async = False

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm OK with proposed change. What about writing some warning message to log file, that this env. variable is no longer supported?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense to me!

Copy link
Collaborator

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

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

ACK

@jirihnidek jirihnidek merged commit 8754769 into master Oct 30, 2017
@jirihnidek jirihnidek deleted the csnyder/1502821 branch October 30, 2017 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants