Skip to content

Add disabled property to OpenStack images #1615

Merged
Kami merged 6 commits intoapache:trunkfrom
micafer:ost_disabled_images
Oct 22, 2021
Merged

Add disabled property to OpenStack images #1615
Kami merged 6 commits intoapache:trunkfrom
micafer:ost_disabled_images

Conversation

@micafer
Copy link
Copy Markdown
Contributor

@micafer micafer commented Oct 18, 2021

Add disabled property to OpenStack images

Description

Add disabled property to OpenStack images. See issue #1614.

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-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 18, 2021

Codecov Report

Merging #1615 (5976ea5) into trunk (ea364c5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            trunk    #1615   +/-   ##
=======================================
  Coverage   83.01%   83.01%           
=======================================
  Files         394      394           
  Lines       84999    85000    +1     
  Branches     9040     9040           
=======================================
+ Hits        70558    70559    +1     
  Misses      11374    11374           
  Partials     3067     3067           
Impacted Files Coverage Δ
libcloud/test/compute/test_openstack.py 94.46% <ø> (ø)
libcloud/compute/drivers/openstack.py 85.88% <100.00%> (+0.01%) ⬆️

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 ea364c5...5976ea5. Read the comment docs.

@micafer micafer requested a review from vdloo October 18, 2021 08:38
@micafer
Copy link
Copy Markdown
Contributor Author

micafer commented Oct 18, 2021

Hi @vdloo, could you please review this small change? thanks!

Copy link
Copy Markdown
Member

@vdloo vdloo left a comment

Choose a reason for hiding this comment

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

lgtm 👍

looks like:

In [9]: mysize = conn.list_sizes()[10]                                                                                                                                                                                                                                                                                         

In [10]: mysize                                                                                                                                                                                                                                                                                                                
Out[10]: <OpenStackNodeSize: id=673b9c55-8a76-41d1-9cb7-f6311143649e, name=m1.medium, ram=4096, disk=60, bandwidth=None, price=0.0, driver=Test OpenStack, vcpus=6,  ...>

In [11]: mysize.extra                                                                                                                                                                                                                                                                                                          
Out[11]: {'disabled': False}

Copy link
Copy Markdown
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.

Next time when a PR is approved, feel free to merge it yourself :)

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.

4 participants