{"record":{"id":"7aa102865b45cafb","repo":"puppetlabs/puppet","slug":"invalid-argument-var-at-error-location-7aa102","errorCode":null,"errorMessage":"Invalid argument '%{var}' at %{error_location}","messagePattern":"Invalid argument '%(.+?)' at %(.+?)","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/util/network_device/config.rb","lineNumber":102,"sourceCode":"    @devices = devices\n  end\n\n  def parse_directive(device, var, value, count)\n    case var\n    when \"type\"\n      device.provider = value\n    when \"url\"\n      begin\n        URI.parse(value)\n      rescue URI::InvalidURIError\n        raise Puppet::Error, _(\"%{value} is an invalid url\") % { value: value }\n      end\n      device.url = value\n    when \"debug\"\n      device.options[:debug] = true\n    else\n      error_location_str = Puppet::Util::Errors.error_location(nil, count)\n      raise Puppet::Error, _(\"Invalid argument '%{var}' at %{error_location}\") % { var: var, error_location: error_location_str }\n    end\n  end\nend\n","sourceCodeStart":84,"sourceCodeEnd":106,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/util/network_device/config.rb#L84-L106","documentation":"Error \"Invalid argument '%{var}' at %{error_location}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/util/network_device/config.rb:102 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}