when the client.LoadImage return an error, there should not be print
success info like the following:
"INFO[0000] Done loading images from /usr/share/ros/images.tar"
This patch fix it by move the log.Infof() after the err check.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Read files cloud-config.d in alphanumeric order, then cloud-config.yml
`ros config` writes to cloud-config.yml (and cloud-config.d/private.yml - only private keys)
Add (c *CloudConfig) Save() method, use it to save the changed config
Read and apply metadata as part of LoadConfig()
Simplify ros config export logic