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