We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed463eb + ca89b3f commit c5515e0Copy full SHA for c5515e0
clicommand/meta_data_get.go
@@ -98,7 +98,7 @@ var MetaDataGetCommand = cli.Command{
98
//
99
// We also use `IsSet` instead of `cfg.Default != ""`
100
// to allow people to use a default of a blank string.
101
- if resp.StatusCode == 404 && c.IsSet("default") {
+ if resp != nil && resp.StatusCode == 404 && c.IsSet("default") {
102
l.Warn(
103
"No meta-data value exists with key %q, returning the supplied default %q",
104
cfg.Key,
0 commit comments