Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1963)

Issue 12352043: Move addFile, addScripts to cloudinit.Config (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by sidnei.da.silva
Modified:
10 years, 8 months ago
Reviewers:
mp+178332, dimitern, natefinch
Visibility:
Public.

Description

Move addFile, addScripts to cloudinit.Config Those were buried down into environs/cloudinit.go, and they will be useful elsewhere for an upcoming branch of mine. Also changed usage of chmod to 'install -m', so the file is created with the correct mode first, and then written to, which increases security a teensy bit. https://code.launchpad.net/~sidnei/juju-core/add-scripts-and-file-to-config/+merge/178332 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Move addFile, addScripts to cloudinit.Config #

Total comments: 2

Patch Set 3 : Move addFile, addScripts to cloudinit.Config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -40 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 chunk +1 line, -1 line 0 comments Download
M cloudinit/cloudinit_test.go View 1 2 1 chunk +35 lines, -1 line 0 comments Download
M cloudinit/options.go View 2 chunks +24 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 9 chunks +10 lines, -26 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 6 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 6
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-02 15:58:39 UTC) #1
sidnei.da.silva
Please take a look.
10 years, 9 months ago (2013-08-02 16:03:35 UTC) #2
dimitern
LGTM apart from a minor request https://codereview.appspot.com/12352043/diff/11002/cloudinit/cloudinit_test.go File cloudinit/cloudinit_test.go (right): https://codereview.appspot.com/12352043/diff/11002/cloudinit/cloudinit_test.go#newcode223 cloudinit/cloudinit_test.go:223: "runcmd:\n" + Only ...
10 years, 9 months ago (2013-08-02 16:13:51 UTC) #3
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12352043/diff/11002/cloudinit/cloudinit_test.go File cloudinit/cloudinit_test.go (right): https://codereview.appspot.com/12352043/diff/11002/cloudinit/cloudinit_test.go#newcode223 cloudinit/cloudinit_test.go:223: "runcmd:\n" + On 2013/08/02 16:13:51, ...
10 years, 9 months ago (2013-08-02 17:04:34 UTC) #4
natefinch
LGTM
10 years, 9 months ago (2013-08-02 19:09:29 UTC) #5
natefinch
10 years, 9 months ago (2013-08-02 19:16:24 UTC) #6
Suggest changing addscripts to AddRunCmds (makes it more clear that it's not
something completely different, just a helper)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b