diff options
Diffstat (limited to 'lib/chef/knife/configure.rb')
-rw-r--r-- | lib/chef/knife/configure.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/knife/configure.rb b/lib/chef/knife/configure.rb index 10ae62b6c9..b277a14a3e 100644 --- a/lib/chef/knife/configure.rb +++ b/lib/chef/knife/configure.rb @@ -131,9 +131,7 @@ EOH def guess_servername o = Ohai::System.new - o.load_plugins - o.require_plugin "os" - o.require_plugin "hostname" + o.all_plugins(%w{ os hostname fqdn }) o[:fqdn] || o[:machinename] || o[:hostname] || "localhost" end |