https://codereview.appspot.com/73300043/diff/1/container/lxc/lxc_test.go#newcode179
container/lxc/lxc_test.go:179: name := string(instance.Id())
It's not clear why this has changed. Has something caused the contents
of the file to be different (apart from the lxc.start.auto)? I would
think it's preferable to match exactly if it's not too onerous.
https:/ /codereview. appspot. com/73300043/ diff/1/ container/ lxc/lxc_ test.go lxc/lxc_ test.go (right):
File container/
https:/ /codereview. appspot. com/73300043/ diff/1/ container/ lxc/lxc_ test.go# newcode179 lxc/lxc_ test.go: 179: name := string( instance. Id())
container/
It's not clear why this has changed. Has something caused the contents
of the file to be different (apart from the lxc.start.auto)? I would
think it's preferable to match exactly if it's not too onerous.
https:/ /codereview. appspot. com/73300043/ diff/1/ container/ lxc/mock/ mock-lxc. go lxc/mock/ mock-lxc. go (right):
File container/
https:/ /codereview. appspot. com/73300043/ diff/1/ container/ lxc/mock/ mock-lxc. go#newcode87 lxc/mock/ mock-lxc. go:87: data, err := ReadFile( configFile)
container/
ioutil.
There's utils.CopyFile, if you didn't know.
https:/ /codereview. appspot. com/73300043/ diff/1/ container/ lxc/mock/ mock-lxc. go#newcode92 lxc/mock/ mock-lxc. go:92: return WriteFile( configFilename, data, 0755)
container/
ioutil.
0644?
https:/ /codereview. appspot. com/73300043/