From 725da7c713a3edaa34edcaffc9f9cc5484482656 Mon Sep 17 00:00:00 2001 From: Dhwani Shah Date: Wed, 1 Nov 2023 09:10:52 -0700 Subject: [PATCH] addressing review comment --- services/compute/virtualmachine/wssd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/compute/virtualmachine/wssd.go b/services/compute/virtualmachine/wssd.go index 368c4d4..1c7753d 100644 --- a/services/compute/virtualmachine/wssd.go +++ b/services/compute/virtualmachine/wssd.go @@ -312,7 +312,9 @@ func getWssdTags(tags map[string]*string) *wssdcloudproto.Tags { } func (c *client) virtualMachineValidations(opType wssdcloudproto.Operation, vmss *compute.VirtualMachine) error { - + if vmss == nil || vmss.OsProfile == nil { + return nil + } if vmss.OsProfile.ProxyConfiguration != nil && opType == wssdcloudproto.Operation_POST { if vmss.OsProfile.ProxyConfiguration.HttpProxy != nil { _, err := validations.ValidateProxyURL(*vmss.OsProfile.ProxyConfiguration.HttpProxy)