{"record":{"id":"286544021903ea2a","repo":"ytti/oxidized","slug":"the-variable-fortios-autoupdate-is-deprecated-mig","errorCode":null,"errorMessage":"The variable fortios_autoupdate is deprecated. Migrate to fortigate_autoupdate","messagePattern":"The variable fortios_autoupdate is deprecated\\. Migrate to fortigate_autoupdate","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/oxidized/model/fortigate.rb","lineNumber":121,"sourceCode":"    else\n      comment cfg\n    end\n  end\n\n  cmd \"get system interface transceiver\" do |cfg|\n    cfg = cfg.keep_lines [\n      /^Interface \\w/,\n      \"Vendor Name\",\n      \"Part No.\",\n      \"Serial No.\"\n    ]\n    cfg = cfg.reject_lines [\"Transceiver is not detected\"]\n    comment cfg + \"\\n\"\n  end\n\n  cmd 'diagnose autoupdate version', if: -> { vars(:fortios_autoupdate) || vars(:fortigate_autoupdate) } do |cfg|\n    if vars(:fortios_autoupdate)\n      logger.warn(\"The variable fortios_autoupdate is deprecated. Migrate to fortigate_autoupdate\")\n    end\n\n    cfg = cfg.sub(/FDS Address\\n---------\\n.*\\n/, '')\n    comment cfg.reject_lines [\"Last Update\", \"Result :\"]\n  end\n\n  cmd 'end', if: -> { @vdom_enabled } do |_cfg|\n    ''\n  end\n\n  def clean_config(cfg)\n    cfg = cfg.reject_lines ['#conf_file_ver=']\n    cfg.gsub!(/(set comments \"Error \\(No order found for account ID \\d+\\) on).*/,\n              '\\\\1 <stripped>')\n    cfg\n  end\n\n  # If vars fullconfig is set to true, we get the full config (including default","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/ytti/oxidized/blob/687ed4262d9d21e54662e872e2383386d8498f7b/lib/oxidized/model/fortigate.rb#L103-L139","documentation":"Error \"The variable fortios_autoupdate is deprecated. Migrate to fortigate_autoupdate\" thrown in ytti/oxidized.","triggerScenarios":"Thrown at lib/oxidized/model/fortigate.rb:121 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":"687ed4262d9d21e54662e872e2383386d8498f7b","analyzedAt":"2026-08-23T11:19:42.084Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}