diff --git a/lib/ood_core/cluster.rb b/lib/ood_core/cluster.rb index 7ac212f37..9d7a6ceae 100644 --- a/lib/ood_core/cluster.rb +++ b/lib/ood_core/cluster.rb @@ -165,9 +165,9 @@ def allow? # @return [Boolean, nil] whether cluster supports SSH to batch connect node def batch_connect_ssh_allow? return @batch_connect_ssh_allow if defined?(@batch_connect_ssh_allow) - return @batch_connect_ssh_allow = nil if batch_connect_config.nil? + return @batch_connect_ssh_allow = true if batch_connect_config.nil? - @batch_connect_ssh_allow = batch_connect_config.fetch(:ssh_allow, nil) + @batch_connect_ssh_allow = batch_connect_config.fetch(:ssh_allow, true) end # The comparison operator diff --git a/spec/cluster_spec.rb b/spec/cluster_spec.rb index 2f30f1fef..0050cf678 100644 --- a/spec/cluster_spec.rb +++ b/spec/cluster_spec.rb @@ -53,7 +53,7 @@ end it 'has default for batch_connect_ssh_allow?' do - expect(owens.batch_connect_ssh_allow?).to be_nil + expect(owens.batch_connect_ssh_allow?).to be true end it 'can enable batch_connect_ssh_allow?' do