From 3889c22f161600b2694fbcf45c06b946b08404e9 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Tue, 18 Sep 2018 15:55:06 +0100 Subject: Fix rubocop offenses created by 5ceed9b --- lib/oxidized/model/cumulus.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/cumulus.rb b/lib/oxidized/model/cumulus.rb index f6f5df4..00c8721 100644 --- a/lib/oxidized/model/cumulus.rb +++ b/lib/oxidized/model/cumulus.rb @@ -89,8 +89,8 @@ class Cumulus < Oxidized::Model cfg :telnet, :ssh do post_login do - if vars(:enable) == true then - cmd "sudo su -", /^\[sudo] password/ + if vars(:enable) == true + cmd "sudo su -", /^\[sudo\] password/ cmd vars(:password) elsif vars(:enable) cmd "su -", /^Password:/ -- cgit v1.2.1