Planner explain output fix (#92)
This commit is contained in:
parent
444a9fd8f2
commit
32dcfe73e7
|
@ -26,7 +26,7 @@ impl StatefulAction<Box<dyn Action>> {
|
||||||
/// A description of what this action would do during execution
|
/// A description of what this action would do during execution
|
||||||
pub fn describe_execute(&self) -> Vec<ActionDescription> {
|
pub fn describe_execute(&self) -> Vec<ActionDescription> {
|
||||||
match self.state {
|
match self.state {
|
||||||
ActionState::Uncompleted | ActionState::Skipped => {
|
ActionState::Completed | ActionState::Skipped => {
|
||||||
vec![]
|
vec![]
|
||||||
},
|
},
|
||||||
_ => self.action.execute_description(),
|
_ => self.action.execute_description(),
|
||||||
|
@ -35,7 +35,7 @@ impl StatefulAction<Box<dyn Action>> {
|
||||||
/// A description of what this action would do during revert
|
/// A description of what this action would do during revert
|
||||||
pub fn describe_revert(&self) -> Vec<ActionDescription> {
|
pub fn describe_revert(&self) -> Vec<ActionDescription> {
|
||||||
match self.state {
|
match self.state {
|
||||||
ActionState::Completed | ActionState::Skipped => {
|
ActionState::Uncompleted | ActionState::Skipped => {
|
||||||
vec![]
|
vec![]
|
||||||
},
|
},
|
||||||
_ => self.action.revert_description(),
|
_ => self.action.revert_description(),
|
||||||
|
|
Loading…
Reference in a new issue