fix map update fault due to incorrect field name, fix bind not detecting already-bound prefixes
diff --git a/xos/hpc_observer/steps/sync_sitemap.py b/xos/hpc_observer/steps/sync_sitemap.py
index 6ac5f06..ae8ca76 100644
--- a/xos/hpc_observer/steps/sync_sitemap.py
+++ b/xos/hpc_observer/steps/sync_sitemap.py
@@ -91,10 +91,12 @@
else:
print "Update Map", map_dict
# these things we probably cannot update
- del map_dict["map_name"]
+ del map_dict["name"]
self.client.onev.Update("Map", map.map_id, map_dict)
- self.update_bind(map, map_dict, "cdn_prefix_ids", "CDNPrefix", cdn_prefix_ids)
+ cmi_map_dict = self.client.onev.Read("Map", map.map_id)
+
+ self.update_bind(map, cmi_map_dict, "cdn_prefix_ids", "CDNPrefix", cdn_prefix_ids)
map.save()