diff mbox

[OSSTEST,02/33] mg-allocate: Do not treat already-allocated resources as satisfactory

Message ID 1468002385-4407-3-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson July 8, 2016, 6:25 p.m. UTC
This was always rather odd for ./mg-allocate HOSTNAME but makes the
more sophisticated uses like ./mg-allocate '{FLAG,FLAG,...}' very much
less useful.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 mg-allocate | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/mg-allocate b/mg-allocate
index d295997..9b66114 100755
--- a/mg-allocate
+++ b/mg-allocate
@@ -234,8 +234,7 @@  END
         if ($allocate) {
             if ($candrow->{owntaskid} == $tid) {
                 logm("$desc: already allocated to $tid");
-                $got_shareix= $candrow->{shareix};
-                $ok=1; last;
+		next;
             }
             if ($isshared) {
                 logm("$desc: available, unsharing");