Skip to content

Commit

Permalink
config.Mapping: Conform to ifupdown's mapping-script interface
Browse files Browse the repository at this point in the history
This doesn't get passed through the shell, it should be a single path to
a script which is given the interface name as an argument.

Signed-off-by: Kyle Moffett <[email protected]>
  • Loading branch information
kmoffett committed Jan 2, 2013
1 parent 0ef9fc6 commit d43f5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ifupdown_ng/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def should_map(self, config_name):

def perform_mapping(self, config_name):
## FIXME(knuq): Set up and pass 'env='
proc = subprocess.Popen(self.script, shell=True,
proc = subprocess.Popen((self.script, config_name),
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
output = proc.communicate(input=''.join(self.script_input))
Expand Down

0 comments on commit d43f5d1

Please sign in to comment.