Skip to content

Commit

Permalink
fix control on action yml #402
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jan 13, 2025
1 parent d9d84a7 commit 410342b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/geoflow_action.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ geoflow_action <- R6Class("geoflow_action",
self$target_dir = if(yml$target_dir=="NA") NA else yml$target_dir
if(!is.na(self$target)) if(!self$target %in% c("entity","job")) stop("Action target should be either 'entity' or 'job'")
self$packages = yml$packages
self$pid_generator = yml$pid_generator
self$pid_generator = if(!is.null(yml$pid_generator)) yml$pid_generator else FALSE
self$pid_types = yml$pid_types
self$generic_uploader = yml$generic_uploader
self$generic_uploader = if(!is.null(yml$generic_uploader)) yml$generic_uploader else FALSE
self$fun = source(system.file("actions", yml$fun, package = "geoflow"))$value
self$available_options = lapply(yml$available_options, function(opt){
if(is.null(opt$default)){
Expand Down

0 comments on commit 410342b

Please sign in to comment.