Skip to content

Minor fix getting description of Ports#1543

Merged
micafer merged 4 commits intoapache:trunkfrom
micafer:min_ost_fix
Feb 15, 2021
Merged

Minor fix getting description of Ports#1543
micafer merged 4 commits intoapache:trunkfrom
micafer:min_ost_fix

Conversation

@micafer
Copy link
Copy Markdown
Contributor

@micafer micafer commented Jan 13, 2021

Minor fix getting description of Ports

Description

In some cases the port may not have the "description" field, and the "_to_port" function fails.

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

Codecov Report

Merging #1543 (f98a7df) into trunk (d5e957a) will decrease coverage by 1.69%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            trunk    #1543      +/-   ##
==========================================
- Coverage   84.77%   83.07%   -1.70%     
==========================================
  Files         388      394       +6     
  Lines       81521    84738    +3217     
  Branches     8243     9002     +759     
==========================================
+ Hits        69111    70399    +1288     
- Misses       9422    11274    +1852     
- Partials     2988     3065      +77     
Impacted Files Coverage Δ
libcloud/compute/drivers/openstack.py 85.74% <100.00%> (+0.06%) ⬆️
libcloud/compute/drivers/outscale.py 8.67% <0.00%> (-10.68%) ⬇️
libcloud/test/dns/test_digitalocean.py 90.72% <0.00%> (-9.28%) ⬇️
libcloud/dns/drivers/linode.py 82.80% <0.00%> (-5.03%) ⬇️
libcloud/test/storage/test_local.py 91.41% <0.00%> (-2.24%) ⬇️
libcloud/dns/drivers/cloudflare.py 92.16% <0.00%> (-1.53%) ⬇️
libcloud/compute/drivers/digitalocean.py 84.86% <0.00%> (-0.33%) ⬇️
libcloud/storage/drivers/s3.py 89.66% <0.00%> (-0.18%) ⬇️
libcloud/test/compute/test_openstack.py 94.43% <0.00%> (-0.01%) ⬇️
libcloud/common/types.py 97.01% <0.00%> (ø)
... and 36 more

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 d5e957a...f98a7df. Read the comment docs.

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, feel free to merge such small fixes at your own convenience.

binding_vnic_type=element['binding:vnic_type'],
device_id=element['device_id'],
description=element['description'],
description=element.get('description', None),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you get a chance it would also be good to add a test case for it + changelog entry.

@micafer micafer merged commit edff041 into apache:trunk Feb 15, 2021
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