Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

refactor: remove storage type from SKU lookup table #4316

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

mboersma
Copy link
Member

@mboersma mboersma commented Mar 5, 2021

Reason for Change:

Since a VM's storage type is calculable from its name, there's no need to maintain a static lookup table. This is a minor simplification to ensure there's only one code path for finding storage type.

(This is also the only separable change that came out of my work on #4277 so far.)

Issue Fixed:

Refs #4277

Credit Where Due:

Does this change contain code from or inspired by another project?

  • No
  • Yes

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #4316 (1a99826) into master (f1943db) will increase coverage by 0.01%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4316      +/-   ##
==========================================
+ Coverage   72.04%   72.05%   +0.01%     
==========================================
  Files         141      141              
  Lines       21636    21632       -4     
==========================================
+ Hits        15587    15588       +1     
+ Misses       5099     5093       -6     
- Partials      950      951       +1     
Impacted Files Coverage Δ
pkg/api/common/helper.go 71.09% <ø> (ø)
cmd/get_skus.go 50.63% <50.00%> (+4.12%) ⬆️
pkg/helpers/azure_skus.go 91.66% <50.00%> (-8.34%) ⬇️

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 f1943db...1a99826. Read the comment docs.

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

/lgtm

@acs-bot
Copy link

acs-bot commented Mar 5, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jackfrancis,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jackfrancis jackfrancis merged commit 0d63cdf into Azure:master Mar 5, 2021
@mboersma mboersma deleted the remove-sku-storage-type branch March 5, 2021 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants