projects
/
archipelago
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext_scripts: Fix bug in attach
[archipelago]
/
xseg
/
tools
/
ext_scripts
/
vlmc_wrapper.py
diff --git
a/xseg/tools/ext_scripts/vlmc_wrapper.py
b/xseg/tools/ext_scripts/vlmc_wrapper.py
index
c19f983
..
83b9298
100755
(executable)
--- a/
xseg/tools/ext_scripts/vlmc_wrapper.py
+++ b/
xseg/tools/ext_scripts/vlmc_wrapper.py
@@
-96,7
+96,7
@@
def attach(env):
# Check if the mapping already exists
d_id = vlmc.is_mapped(name)
- if d_id:
+ if d_id is not None:
# The mapping exists. Return it.
sys.stdout.write("%s" % str(DEVICE_PREFIX + str(d_id)))
return 0