Skip to content

Commit

Permalink
Filled the allSnapshotsAvailable stub with meaningful code.
Browse files Browse the repository at this point in the history
It is now chacking for the base docker template for virtual nodes and reporting properly.
  • Loading branch information
oikuda committed Jun 25, 2015
1 parent 37eeda3 commit f4fc6ed
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion runtime/linux.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,27 @@ proc fetchRunningExperiments {} {}
# current system.
#****
proc allSnapshotsAvailable {} {
return 1
global VROOT_MASTER execMode
catch {exec docker images} images

if {"imunes/vroot" in $images} {
return 1
} else {
if {$execMode == "batch"} {
puts "Docker template for virtual nodes:
$VROOT_MASTER
is missing.
Run 'imunes -p' to pull the template."
} else {
tk_dialog .dialog1 "IMUNES error" \
"Docker template for virtual nodes:
$VROOT_MASTER
is missing.
Run 'imunes -p' to pull the template." \
info 0 Dismiss
}
return 0
}
}

proc prepareDevfs {} {}
Expand Down

0 comments on commit f4fc6ed

Please sign in to comment.