File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
internal/service/containerengine Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ func ContainerengineAddonResource() *schema.Resource {
8383 "version" : {
8484 Type : schema .TypeString ,
8585 Optional : true ,
86- Computed : true ,
8786 },
8887
8988 // Computed
@@ -234,7 +233,9 @@ func (s *ContainerengineAddonResourceCrud) Create() error {
234233
235234 if version , ok := s .D .GetOkExists ("version" ); ok {
236235 tmp := version .(string )
237- request .Version = & tmp
236+ if len (tmp ) > 0 {
237+ request .Version = & tmp
238+ }
238239 }
239240
240241 request .RequestMetadata .RetryPolicy = tfresource .GetRetryPolicy (s .DisableNotFoundRetries , "containerengine" )
@@ -469,7 +470,9 @@ func (s *ContainerengineAddonResourceCrud) Update() error {
469470
470471 if version , ok := s .D .GetOkExists ("version" ); ok {
471472 tmp := version .(string )
472- request .Version = & tmp
473+ if len (tmp ) > 0 {
474+ request .Version = & tmp
475+ }
473476 }
474477
475478 request .RequestMetadata .RetryPolicy = tfresource .GetRetryPolicy (s .DisableNotFoundRetries , "containerengine" )
You can’t perform that action at this time.
0 commit comments