ext_scripts: Fix bug in attach
[archipelago] / xseg / tools / ext_scripts / vlmc_wrapper.py
index c19f983..83b9298 100755 (executable)
@@ -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