Skip to content

Commit

Permalink
Merge pull request #15939 from h-kataria/added_playbook_type_location
Browse files Browse the repository at this point in the history
Added 'playbook' as location type for Automate Methods
  • Loading branch information
Fryguy authored Sep 8, 2017
2 parents fee77a1 + b79be0a commit 0bb0aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_ae_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MiqAeMethod < ApplicationRecord

AVAILABLE_LANGUAGES = ["ruby", "perl"] # someday, add sh, perl, python, tcl and any other scripting language
validates_inclusion_of :language, :in => AVAILABLE_LANGUAGES
AVAILABLE_LOCATIONS = %w(builtin inline uri expression).freeze
AVAILABLE_LOCATIONS = %w(builtin inline uri expression playbook).freeze
validates_inclusion_of :location, :in => AVAILABLE_LOCATIONS
AVAILABLE_SCOPES = ["class", "instance"]
validates_inclusion_of :scope, :in => AVAILABLE_SCOPES
Expand Down

0 comments on commit 0bb0aee

Please sign in to comment.