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

Fix error in resize function in OpenStack driver #1309 #1311

Merged
merged 2 commits into from
Jul 12, 2019

Conversation

micafer
Copy link
Contributor

@micafer micafer commented Jul 12, 2019

Fix error in resize function in OpenStack driver

Description

Fix the error in resize function in OpenStack driver described in issue #1309

Status

  • done, ready for review

Checklist (tick everything that applies)

  • Code linting (required, can be done after the PR checks)
  • Documentation
  • Tests
  • ICLA (required for bigger changes)

@codecov-io
Copy link

Codecov Report

Merging #1311 into trunk will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1311      +/-   ##
==========================================
- Coverage   85.88%   85.88%   -0.01%     
==========================================
  Files         362      362              
  Lines       74622    74624       +2     
  Branches     6827     6828       +1     
==========================================
- Hits        64091    64089       -2     
- Misses       7774     7776       +2     
- Partials     2757     2759       +2
Impacted Files Coverage Δ
libcloud/compute/drivers/openstack.py 83.97% <100%> (ø) ⬆️
libcloud/test/compute/test_openstack.py 94.76% <100%> (-0.12%) ⬇️
libcloud/test/compute/test_upcloud.py 90.06% <0%> (-1.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76391db...c2fe4db. Read the comment docs.

Copy link
Member

@Kami Kami left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@@ -1588,7 +1588,7 @@ def ex_resize(self, node, size):

:rtype: ``bool``
"""
server_params = self._create_args_to_params(node, size=size)
server_params = {'flavorRef': size.id}
Copy link
Member

Choose a reason for hiding this comment

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

P.S. Next time it would help if you can link to the corresponding API documentation (e.g. https://developer.openstack.org/api-ref/compute/?expanded=resize-server-resize-action-detail in this case).

@Kami Kami merged commit 51687ee into apache:trunk Jul 12, 2019
@@ -1588,7 +1588,7 @@ def ex_resize(self, node, size):

:rtype: ``bool``
"""
server_params = self._create_args_to_params(node, size=size)
server_params = {'flavorRef': size.id}
Copy link
Member

Choose a reason for hiding this comment

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

For consistency, we should also rename this to ex_resize_node. I will make that change in trunk and leave ex_resize there for backward compatibility reasons.

asfgit pushed a commit that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants