Skip to content

Commit

Permalink
#1 - Ensure Line() respects the sensitive flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k committed Sep 15, 2014
1 parent 3662d83 commit 8ed6b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions fuselage/providers/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def apply(self):
fc = EnsureContents(
self.resource.name,
contents,
sensitive=self.resource.sensitive,
)
self.change(fc)

Expand Down
3 changes: 3 additions & 0 deletions fuselage/resources/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from fuselage.argument import (
FullPath,
String,
Boolean,
)
from fuselage.utils import simple_str, force_str

Expand Down Expand Up @@ -56,6 +57,8 @@ def implicit_id(self):
match = String(default="")
""" The python regular expression to match the line to be updated. """

sensitive = Boolean(default=False)


class LineApplyPolicy(Policy):

Expand Down

0 comments on commit 8ed6b5f

Please sign in to comment.