app/models/setting/ansible.rb in foreman_ansible-1.5.2 vs app/models/setting/ansible.rb in foreman_ansible-2.0.0

- old
+ new

@@ -8,11 +8,10 @@ # rubocop:disable AbcSize # rubocop:disable MethodLength # rubocop:disable BlockLength def load_defaults return unless super - Setting::BLANK_ATTRS.push('ansible_ssh_private_key_file') transaction do [ set( 'ansible_port', N_('Use this port to connect to hosts '\ @@ -84,10 +83,11 @@ '1' => N_('Level 1 (-v)'), '2' => N_('Level 2 (-vv)'), '3' => N_('Level 3 (-vvv)'), '4' => N_('Level 4 (-vvvv)') } end + # rubocop:enable BlockLength ), set( 'ansible_post_provision_timeout', N_('Timeout (in seconds) to set when Foreman will trigger a '\ 'play Ansible roles task after a host is fully provisioned. '\ @@ -98,11 +98,14 @@ ) ].compact.each do |s| create(s.update(:category => 'Setting::Ansible')) end end + Setting::BLANK_ATTRS.push('ansible_ssh_private_key_file') true end + # rubocop:enable AbcSize + # rubocop:enable MethodLength def humanized_category N_('Ansible') end end