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

Fixes #28438 - Undefined method reload for PowerOn/Off #53

Merged
merged 1 commit into from Dec 8, 2019

Conversation

apuntamb
Copy link
Member

@apuntamb apuntamb commented Dec 6, 2019

No description provided.

@@ -44,6 +44,9 @@ def ready?
vm_status == 'running'
end

def reload
end
Copy link
Member Author

Choose a reason for hiding this comment

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

@ShimShtein Introducing this method in our wrapper class, solves the error for us since it finds the method definition. But, I'm not very sure of what should be returned here?

Copy link
Member

@ShimShtein ShimShtein Dec 8, 2019

Choose a reason for hiding this comment

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

#reload method does not need any return value.

Copy link
Member

Choose a reason for hiding this comment

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

The vm is reloaded for getting the new power state to show in the UI. In our case, we load the power state from SDK each access to vm_status method, it can remain blank.

@ShimShtein ShimShtein merged commit 5952c82 into theforeman:master Dec 8, 2019
@ShimShtein
Copy link
Member

Merged, thanks @apuntamb!

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.

None yet

2 participants