Non-API charm series upgrade

For non-API charms the haproxy_enabled method did not exist. Yet this
is called in the pause process called by series upgrade.

This change adds a method to the OpenStackCharm class which is a noop.

Change-Id: If42efab93dca85137d8758cae4f2e8baab75ae72
This commit is contained in:
David Ames 2018-10-17 13:56:35 -07:00
parent ad407c9912
commit 7a3bc16a2b
1 changed files with 11 additions and 0 deletions

View File

@ -170,6 +170,17 @@ class OpenStackCharm(BaseOpenStackCharm,
version = os_utils.os_release(self.version_package)
return version
def haproxy_enabled(self):
"""Determine if haproxy is fronting the services
The OpenStackCharm class may be used for subordinates or charms which
do not use haproxy. This method is overriden in the HAOpenStackCharm
class where haproxy is utilized.
@return None
"""
pass
def run_pause_or_resume(self, action):
"""Helper to enable pause/resume action to be processed."""
actions = {