Commits

Christian Theune committed 5789ddf

Simplify nginx file copying: use content attribute directly instead of trying
to read the file which hasn't been realized yet.

  • Participants
  • Parent commits 281afcf

Comments (0)

Files changed (1)

File components/nginx/component.py

             # automatically?
             self += File(
                 '/etc/nginx/local/%s' % os.path.basename(f.path),
-                source=os.path.join(self.root.workdir, f.path))
+                content=f.content)
 
     def verify(self):
         self.assert_no_subcomponent_changes()