[Pure Storage] Honour the share_name_template parameter
No release notes required as this driver has not yet been included
in a release and all we are doing here is honouring the standard
share naming template that is documented elsewhere.
@@ -197,10 +197,12 @@ class FlashBladeShareDriver(driver.ShareDriver):
return config_value
def _make_source_name(self, snapshot):
- return "share-%s-manila" % snapshot["share_id"]
+ base_name = CONF.share_name_template + "-manila"
+ return base_name % snapshot["share_id"]
def _make_share_name(self, manila_share):
- return "share-%s-manila" % manila_share["id"]
+ base_name = CONF.share_name_template + "-manila"
+ return base_name % manila_share["id"]
def _get_full_nfs_export_path(self, export_path):
subnet_ip = self.data_address
