lib/chef/knife/cloud/google_service.rb in knife-google-5.0.5 vs lib/chef/knife/cloud/google_service.rb in knife-google-5.0.8
- old
+ new
@@ -20,10 +20,10 @@
require "chef/knife/cloud/exceptions"
require "chef/knife/cloud/service"
require "chef/knife/cloud/helpers"
require_relative "google_service_helpers"
require "google/apis/compute_v1"
-require "ipaddr"
+require "ipaddr" unless defined?(IPAddr)
require_relative "../../../knife-google/version"
class Chef::Knife::Cloud
class GoogleService < Service
include Chef::Knife::Cloud::GoogleServiceHelpers