# File lib/simp/cli/config/items/data/cli_network_ipaddress.rb, line 22 def os_value ip = nil nic = get_item( 'cli::network::interface' ).value if nic || @fact @fact = @fact || "ipaddress_#{nic}" ip = super if ip.nil? and !@__warning warning = "WARNING: #{@key}: No IP Address found for NIC #{nic}" warn( warning, [:YELLOW] ) @__warning = true end end ip end