lib/chef/knife/openstack_helpers.rb in knife-openstack-2.1.1 vs lib/chef/knife/openstack_helpers.rb in knife-openstack-2.1.7
- old
+ new
@@ -13,11 +13,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require "chef/knife/cloud/openstack_service_options"
+require_relative "cloud/openstack_service_options"
class Chef
class Knife
class Cloud
module OpenstackHelpers
@@ -46,10 +46,10 @@
if addresses[addresses.keys[0]] && addresses[addresses.keys[0]].size > 0
ips = addresses[addresses.keys[0]]
ips.each do |ip|
version = "IPv6" if ip["version"] == 6
version = "IPv4" if ip["version"] == 4
- info << "#{addresses.keys[0]}:#{version}: #{ip['addr']}"
+ info << "#{addresses.keys[0]}:#{version}: #{ip["addr"]}"
end
end
info.join(" ")
end
end