added sf_account_prefix to solidfire backend
Related-Bug: PROD-21443
Change-Id: Iaa73a9aeaf92665d432821c03aa49a90908645d0
diff --git a/README.rst b/README.rst
index fbdaaf9..3cde4ca 100644
--- a/README.rst
+++ b/README.rst
@@ -549,6 +549,8 @@
sf_emulate_512: false
sf_api_port: 14443
host: ctl01
+ #for compatibility with old versions
+ sf_account_prefix: PREFIX
Cinder setup with Block Device driver
diff --git a/cinder/files/backend/_solidfire.conf b/cinder/files/backend/_solidfire.conf
index 5a76c70..d954121 100644
--- a/cinder/files/backend/_solidfire.conf
+++ b/cinder/files/backend/_solidfire.conf
@@ -14,3 +14,6 @@
sf_api_port = {{ backend.get('sf_api_port', 443) }}
{%- endif %}
volume_driver=cinder.volume.drivers.solidfire.SolidFireDriver
+{%- if backend.sf_account_prefix is defined %}
+sf_account_prefix = {{ backend.sf_account_prefix }}
+{%- endif %}