CORD-1053 fix vtr's vsg key not being put in the right place
Change-Id: Idf5c58fbf7abae80fb760b812fd5fef6950a3adc
diff --git a/xos/synchronizers/onboarding/xosbuilder.py b/xos/synchronizers/onboarding/xosbuilder.py
index 73b06a2..44bdb59 100644
--- a/xos/synchronizers/onboarding/xosbuilder.py
+++ b/xos/synchronizers/onboarding/xosbuilder.py
@@ -434,8 +434,12 @@
if c.name == "vtr":
# VTR is special -- it has the vSG's private key
+ # TODO: If docker-compose autogenerate remains a feature,
+ # then replace this special-purposing with a general-
+ # purpose mechanism for sharing private keys with
+ # trusted services.
nb_volume_list.append({"host_path": "/opt/cord_profile/key_import/vsg_rsa",
- "container_path": "/opt/cord_profile/services/%s/keys/vsg_rsa" % c.name,
+ "container_path": "/opt/xos/services/%s/keys/vsg_rsa" % c.name,
"read_only": True})
nb_external_links = []