diff --git a/includes/html/pages/device/showconfig.inc.php b/includes/html/pages/device/showconfig.inc.php
index 1bd4e0a54530..8e2a72beffeb 100644
--- a/includes/html/pages/device/showconfig.inc.php
+++ b/includes/html/pages/device/showconfig.inc.php
@@ -170,8 +170,7 @@
// Try Oxidized again with new hostname, if it has changed
if ($oxidized_hostname != $device['hostname']) {
- $response = (new \App\ApiClients\Oxidized())->getContent('/node/show/' . $oxidized_hostname . '?format=json');
- $node_info = json_decode($response, true);
+ $node_info = json_decode((new \App\ApiClients\Oxidized())->getContent('/node/show/' . $oxidized_hostname . '?format=json'), true);
}
}
@@ -304,7 +303,7 @@
echo '
';
print_error("We couldn't retrieve the device information from Oxidized");
if (isset($response) && preg_match('#