Skip to content

Commit f05fc9a

Browse files
committed
config: prevent empty values for required configs
Fixes #147 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 4673829 commit f05fc9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ const (
4545
DEFAULT = "default"
4646
)
4747

48+
var NonEmptyConfigKeys = map[string]bool{
49+
"output": true,
50+
"timeout": true,
51+
"profile": true,
52+
"url": true,
53+
}
54+
4855
// DefaultACSAPIEndpoint is the default API endpoint for CloudStack.
4956
const DefaultACSAPIEndpoint = "http://localhost:8080/client/api"
5057

0 commit comments

Comments
 (0)