Skip to content

Commit

Permalink
Correct propagation of Action trait methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Apr 3, 2018
1 parent 03d1b2d commit 0653a89
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/render/apply/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ impl<'a> Deserialize<'a> for Command {
}

impl Action for Command {
fn needs_pitch(&self) -> bool {
self.0.needs_pitch()
}

fn pitch(&self, task: &mut Task, variables: &Variables)
-> Result<(), Error>
{
self.0.pitch(task, variables)
}
fn execute(&self, task: &mut Task, variables: &Variables)
-> Result<(), Error>
{
Expand Down Expand Up @@ -196,10 +205,7 @@ pub fn apply_list(role: &String,
cmd.execute(&mut Task {
runner: &aname,
log: &mut action,
dry_run,
source: &source,
sandbox,
scratch,
dry_run, source, sandbox, scratch,
}, &vars)?;
}
}
Expand Down

0 comments on commit 0653a89

Please sign in to comment.