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

Omit metadata from state file when it's nil #775

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

divolgin
Copy link
Member

What I Did

Removed "metadata": null from state file.

How I Did it

By adding omitempty tag

How to verify it

  1. Run ship init --headless https://honeycomb.io/download/kubernetes/logs/quickstart.yaml
  2. Look in .ship/state.json

There should not be "metadata": null key and value.

Description for the Changelog

Don't serialize the "metadata" key into state data when it's nil.

Picture of a Boat (not required but encouraged)

@divolgin divolgin merged commit 29cfcec into replicatedhq:master Dec 26, 2018
@divolgin divolgin deleted the no-nil branch January 26, 2019 00:30
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