-
Notifications
You must be signed in to change notification settings - Fork 925
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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} |
There was a problem hiding this comment.
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).
@@ -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} |
There was a problem hiding this comment.
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.
Fix error in resize function in OpenStack driver
Description
Fix the error in resize function in OpenStack driver described in issue #1309
Status
Checklist (tick everything that applies)