Skip to content

PWX-27046: Avoid panic when drive type is not specified.#118

Merged
pp511 merged 2 commits intolibopenstorage:masterfrom
pp511:avoid_paniv-with-missing-drive-type
Oct 12, 2022
Merged

PWX-27046: Avoid panic when drive type is not specified.#118
pp511 merged 2 commits intolibopenstorage:masterfrom
pp511:avoid_paniv-with-missing-drive-type

Conversation

@pp511
Copy link
Copy Markdown
Contributor

@pp511 pp511 commented Oct 12, 2022

Signed-off-by: Priyanshu Pandey ppandey@purestorage.com

What this PR does / why we need it:
*vol.VolumeType results into nil pointer dereferencing. This occurs when drive type is not specified in the deviceSpec.
Also some indentation issues where auto fixed by the ide.

Which issue(s) this PR fixes (optional)
Closes # PWX-27046

Signed-off-by: Priyanshu Pandey <ppandey@purestorage.com>
@pp511 pp511 requested review from adityadani and nrevanna October 12, 2022 23:01
Comment thread aws/aws.go
Signed-off-by: Priyanshu Pandey <ppandey@purestorage.com>
@pp511 pp511 merged commit 48dfb6c into libopenstorage:master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants