lib/rundock/builder/operation_builder.rb in rundock-0.5.4 vs lib/rundock/builder/operation_builder.rb in rundock-0.5.7

- old
+ new

@@ -114,14 +114,14 @@ return end unless recursive # apply cli options - if !cli_options.key?(:run_anyway) - node_attributes.errexit = true - else - node_attributes.errexit = !cli_options[:run_anyway] - end + node_attributes.errexit = if !cli_options.key?(:run_anyway) + true + else + !cli_options[:run_anyway] + end node_attributes.dry_run = (cli_options && cli_options[:dry_run]) ? true : false end # override by scenario node_attributes.define_attr(ope_type, ope_content)