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

Add VM Status defaulter #662

Merged
merged 2 commits into from
Aug 24, 2020
Merged

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Aug 17, 2020

VM Status.Network & Status.Runtime are nil by default. Initialize it
to avoid panics when attempting to set their attributes.

Remove extra nil checks added previously in #651
and any runtime initializations.

@darkowlzz darkowlzz requested a review from twelho as a code owner August 17, 2020 19:41
@darkowlzz darkowlzz requested a review from stealthybox August 17, 2020 19:41
Status.Network & Status.Runtime are nil by default. Initialize it
to avoid panics when attempting to set their attributes.

Remove extra nil checks added previously and runtime initializations.
@stealthybox stealthybox merged commit 6f681e0 into weaveworks:master Aug 24, 2020
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.

2 participants