From 72898b7003e90d6cdc19fb0c143f95cc806b3775 Mon Sep 17 00:00:00 2001 From: vaikas-google Date: Tue, 17 Nov 2015 18:52:50 -0800 Subject: [PATCH] address codereview comment. make Status omitempty --- manager/manager/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manager/manager/types.go b/manager/manager/types.go index 07041f03f..5541fcde4 100644 --- a/manager/manager/types.go +++ b/manager/manager/types.go @@ -151,8 +151,9 @@ const ( ) // ResourceState describes the state of a resource. +// Status is set during resource creation and is a terminal state. type ResourceState struct { - Status ResourceStatus `json:"status"` + Status ResourceStatus `json:"status,omitempty"` SelfLink string `json:"selflink,omitempty"` Errors []string `json:"errors,omitempty"` }