fixed syntax error relation-set, added missing backend config option

This commit is contained in:
Michael Skalka
2018-11-15 15:10:13 -05:00
parent a29d9cd21a
commit 19528a8dce
3 changed files with 5 additions and 1 deletions

View File

@@ -9,3 +9,7 @@ options:
type: string
default: iscsi
description: "SAN protocol to use. Choose between iscsi or fc."
volume-backend-name:
type: string
description: "Service name to present to Cinder"
default:

View File

@@ -30,7 +30,7 @@ class PureStorageCharm(OpenStackCharm):
else:
relation_set(
relation_id=rel_id[0],
backend_name=config()['volume-backend-name'] or service_name(),
backend_name=config('volume-backend-name') or service_name(),
subordinate_configuration=json.dumps(
PureStorageSubordinateContext()()),
stateless=True,

BIN
unit_tests/__init__.pyc Normal file

Binary file not shown.