Merge lp:~makyo/charms/precise/juju-gui/core-chmod into lp:~juju-gui/charms/precise/juju-gui/trunk

Proposed by Madison Scott-Clary
Status: Merged
Merged at revision: 75
Proposed branch: lp:~makyo/charms/precise/juju-gui/core-chmod
Merge into: lp:~juju-gui/charms/precise/juju-gui/trunk
Diff against target: 13 lines (+3/-0)
1 file modified
hooks/backend.py (+3/-0)
To merge this branch: bzr merge lp:~makyo/charms/precise/juju-gui/core-chmod
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+175649@code.launchpad.net

Description of the change

Charm dir perms in core #1202772

Apache was giving a 403 when charm was deployed using core due to perms on the charm dir.

https://codereview.appspot.com/11540043/

To post a comment you must log in.
Revision history for this message
Madison Scott-Clary (makyo) wrote :

Reviewers: mp+175649_code.launchpad.net,

Message:
Please take a look.

Description:
Charm dir perms in core #1202772

Apache was giving a 403 when charm was deployed using core due to perms
on the charm dir.

https://code.launchpad.net/~makyo/charms/precise/juju-gui/core-chmod/+merge/175649

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/11540043/

Affected files:
   A [revision details]
   M hooks/backend.py

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision: <email address hidden>

Index: hooks/backend.py
=== modified file 'hooks/backend.py'
--- hooks/backend.py 2013-07-17 21:30:28 +0000
+++ hooks/backend.py 2013-07-18 18:38:11 +0000
@@ -149,6 +149,9 @@
  class GoMixin(object):
      debs = ('python-yaml',)

+ def install(self, backend):
+ utils.cmd_log(shelltoolbox.run('chmod', '+x', utils.CURRENT_DIR))
+

  class Backend(object):
      """Compose methods and policy needed to interact with a Juju
backend."""

Revision history for this message
Benjamin Saller (bcsaller) wrote :
Revision history for this message
Gary Poster (gary) wrote :

LGTM with trivial.

Thank you!

Gary

https://codereview.appspot.com/11540043/diff/1/hooks/backend.py
File hooks/backend.py (right):

https://codereview.appspot.com/11540043/diff/1/hooks/backend.py#newcode153
hooks/backend.py:153: utils.cmd_log(shelltoolbox.run('chmod', '+x',
utils.CURRENT_DIR))
Please add a comment referencing the bug number to explain why we are
doing this.

https://codereview.appspot.com/11540043/

Revision history for this message
Madison Scott-Clary (makyo) wrote :

*** Submitted:

Charm dir perms in core #1202772

Apache was giving a 403 when charm was deployed using core due to perms
on the charm dir.

R=benjamin.saller, gary.poster
CC=
https://codereview.appspot.com/11540043

https://codereview.appspot.com/11540043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/backend.py'
2--- hooks/backend.py 2013-07-17 21:30:28 +0000
3+++ hooks/backend.py 2013-07-18 18:52:30 +0000
4@@ -149,6 +149,9 @@
5 class GoMixin(object):
6 debs = ('python-yaml',)
7
8+ def install(self, backend):
9+ utils.cmd_log(shelltoolbox.run('chmod', '+x', utils.CURRENT_DIR))
10+
11
12 class Backend(object):
13 """Compose methods and policy needed to interact with a Juju backend."""

Subscribers

People subscribed via source and target branches