fixed syntax error relation-set, added missing backend config option
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
BIN
unit_tests/__init__.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user