diff --git a/apps/dashboard/app/lib/smart_attributes/attributes/auto_job_name.rb b/apps/dashboard/app/lib/smart_attributes/attributes/auto_job_name.rb index 0761ec7a18..5fd0f17a19 100644 --- a/apps/dashboard/app/lib/smart_attributes/attributes/auto_job_name.rb +++ b/apps/dashboard/app/lib/smart_attributes/attributes/auto_job_name.rb @@ -17,7 +17,7 @@ class AutoJobName < Attribute # Defaults to ondemand/[dev,sys]/projects # @return [String] attribute value def value - job_name(opts[:value] || 'Project Manager Job') + opts[:value] || 'Project Manager Job' end def widget @@ -32,7 +32,7 @@ def label(*) # @param fmt [String, nil] formatting of hash # @return [Hash] submission hash def submit(*) - { script: { job_name: value } } + { script: { job_name: job_name(value) } } end # TODO: need to sanitize the job name for some schedulers