From fbdff6c38e36b29635c648434225f77e4e3bdcd9 Mon Sep 17 00:00:00 2001 From: Matthew Fuller Date: Mon, 22 Mar 2021 21:18:15 +0000 Subject: [PATCH] Fix Config object permissions This change fixes a bug where the default file and directory permissions weren't getting added (if missing) to the Config object at runtime. Change-Id: I87ed2f40af9fe079baade67c506a19de427c4e64 --- pkg/config/utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/config/utils.go b/pkg/config/utils.go index 98b38ccfb..9bde58142 100644 --- a/pkg/config/utils.go +++ b/pkg/config/utils.go @@ -66,6 +66,10 @@ func NewEmptyConfig() *Config { Manifests: map[string]*Manifest{}, Contexts: map[string]*Context{}, fileSystem: fs.NewDocumentFs(), + Permissions: Permissions{ + DirectoryPermission: AirshipDefaultDirectoryPermission, + FilePermission: AirshipDefaultFilePermission, + }, } }