Use existing (but not indexed) interface

The send_storage_backend_data method was written before I realised
that a cinder-backend interface already existed. This change
updates send_storage_backend_data to use the existing interface
which has a slightly different method name and signature for
sending relation data to principle.

Change-Id: I6eeedffe2961e97f8ea04ad85be5f9aa9b8820ed
This commit is contained in:
Liam Young 2019-01-14 17:40:03 +00:00
parent f71afd9178
commit 6f83bdef6b
1 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import base64
import contextlib
import json
import os
import random
import re
@ -899,8 +898,7 @@ class CinderStoragePluginCharm(OpenStackCharm):
def send_storage_backend_data(self):
cbend = relations.endpoint_from_flag('storage-backend.connected')
cbend.send_plugin_configuration(
cbend.configure_principal(
backend_name=self.service_name,
subordinate_configuration=json.dumps(
self.cinder_configuration()),
configuration=self.cinder_configuration(),
stateless=self.stateless)