Browse Source

This should be unknown until it makes the request to ZTP.

Joe Clarke 5 years ago
parent
commit
37ac66ab60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      www/swreg/callhome.php

+ 1 - 1
www/swreg/callhome.php

@@ -89,7 +89,7 @@ if ($row['should_re_ztp'] == 2) {
     $sql = 'UPDATE DEVICE_MAP SET should_re_ztp=?, provisioned_status=?, device_status=? WHERE serial_number=?';
     try {
         $sth = $dbh->prepare($sql);
-        $res = $sth->execute(array(0, PROVISION_IN_PROGRESS, REACHABILITY_NEVER_REACHABLE, $sn));
+        $res = $sth->execute(array(0, PROVISION_UNKNOWN, REACHABILITY_NEVER_REACHABLE, $sn));
     } catch (PDOException $e) {
         $logger->crit("Failed to reset re-ZTP bit for {$sn}: {$e->getMessage()}");
     }