1. Christian Theune
  2. sprintsite

Commits

Christian Theune  committed 281afcf

ensure the system-wide nginx component copies the expanded template, not the
template source.

  • Participants
  • Parent commits 58898a4
  • Branches default

Comments (0)

Files changed (1)

File components/nginx/component.py

View file
                 continue
             if not f.path.endswith('.conf'):
                 continue
+            # XXX why don't we just expand f.path to an absolute path
+            # automatically?
             self += File(
                 '/etc/nginx/local/%s' % os.path.basename(f.path),
-                source=f.path)
+                source=os.path.join(self.root.workdir, f.path))
 
     def verify(self):
         self.assert_no_subcomponent_changes()