Skip to content

Commit df31ef9

Browse files
committed
Robust check for Site config
Signed-off-by: Tareque Hossain <thossain@nvidia.com>
1 parent 0ffa7f0 commit df31ef9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

api/pkg/api/handler/site.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ func (ush UpdateSiteHandler) Handle(c echo.Context) error {
458458

459459
// Check if Site capabilities can be modified
460460
if apiRequest.Capabilities != nil {
461+
if es.Config == nil {
462+
es.Config = &cdbm.SiteConfig{}
463+
}
461464
if apiRequest.Capabilities.NativeNetworking != nil && *apiRequest.Capabilities.NativeNetworking != es.Config.NativeNetworking && !*apiRequest.Capabilities.NativeNetworking {
462465
// Native Networking is being disabled
463466
// Check if there are VPCs that have virtualization type set to FNN

0 commit comments

Comments
 (0)