Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Conversion of shell calls into REST calls, part #1 #5261

Merged
merged 6 commits into from
Sep 8, 2017
Merged

[1LP][RFR] Conversion of shell calls into REST calls, part #1 #5261

merged 6 commits into from
Sep 8, 2017

Conversation

mfalesni
Copy link
Contributor

No description provided.

return self.db.client.session.query(
miq_servers.id).filter(miq_servers.guid == self.guid)[0][0]
try:
server = self.rest_api.get_entity_by_href(self.rest_api.server_info['server_href'])
Copy link
Contributor

Choose a reason for hiding this comment

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

this piece seems to be duplicated a lot, perhaps a helper can cut the code short

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeh, server_info api fields could have a getter method on appliance.

@mfalesni mfalesni changed the title [WIPTEST] Conversion of shell calls into REST calls [RFR] Conversion of shell calls into REST calls, part #1 Sep 6, 2017
@dajoRH dajoRH removed the WIP-testing label Sep 6, 2017
Copy link
Contributor

@mkoura mkoura left a comment

Choose a reason for hiding this comment

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

👌

@mkoura mkoura changed the title [RFR] Conversion of shell calls into REST calls, part #1 [1LP][RFR] Conversion of shell calls into REST calls, part #1 Sep 7, 2017
@psav psav self-assigned this Sep 8, 2017
@psav psav merged commit a279614 into ManageIQ:master Sep 8, 2017
@mfalesni mfalesni deleted the moar-rest branch September 8, 2017 09:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants