Skip to content

Commit 1a01ba4

Browse files
committed
fix for the hyperv install loop
1 parent 074fcff commit 1a01ba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function_requirements('ipcalc');
546546
$current_ip = false;
547547
$maxLoop = 100;
548548
$loop = 0;
549-
while ($current_ip === false || $current_ip = '' || $loop >= $maxLoop) {
549+
while (in_array($current_ip, [false, '']) && $loop <= $maxLoop) {
550550
$loop++;
551551
sleep(20);
552552
//myadmin_log('hyperv', 'info', "(" . str_replace("\n", "", json_encode($getvm_parameters)) . ")", __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);

0 commit comments

Comments
 (0)