Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: hiera/install_precise.py

Issue 6269682487132160: Issue 2151 - Drop hiera/private in favor of modules/private/hiera (Closed)
Patch Set: Created March 17, 2015, 9:06 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « hiera/hiera.yaml ('k') | hiera/puppet_node_classifier.rb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: hiera/install_precise.py
===================================================================
--- a/hiera/install_precise.py
+++ b/hiera/install_precise.py
@@ -98,6 +98,8 @@
subprocess.check_call(['apt-get', '-y', 'install', 'hiera-puppet'])
if not os.path.exists('/etc/puppet/hiera.yaml'):
- config = os.path.join(os.path.dirname(__file__), 'hiera.yaml')
+ realpath = os.path.realpath(__file__)
+ dirname = os.path.dirname(realpath)
+ config = os.path.join(dirname, 'hiera.yaml')
mathias 2015/03/17 09:28:48 This is actually a bug I encountered and fixed dur
if os.path.exists(config):
os.symlink(config, '/etc/puppet/hiera.yaml')
« no previous file with comments | « hiera/hiera.yaml ('k') | hiera/puppet_node_classifier.rb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld