Skip to content

Commit

Permalink
suppressing userdata parse error when it's not used to pass in ecs ag…
Browse files Browse the repository at this point in the history
…ent config
  • Loading branch information
yhlee-aws committed Dec 24, 2018
1 parent 858ca91 commit 0dd3811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func userDataConfig(ec2Client ec2.EC2MetadataClient) Config {
// we'd need to add logic to decode the string here.
err = json.Unmarshal([]byte(userData), &parsedUserData)
if err != nil {
seelog.Infof("Unable to parse user data: %v", err)
seelog.Debugf("Non-json user data, skip merging into agent config: %v", err)
// Unable to parse userdata as a valid JSON. Return the
// empty config
return Config{}
Expand Down

0 comments on commit 0dd3811

Please sign in to comment.