1. Christian Theune
  2. sprintsite

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
  • Branches default

Comments (0)

Files changed (1)

File components/nginx/component.py

View file
  • Ignore whitespace
             # 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()