Merge "Remove duplicate code of software deployment resource"
This commit is contained in:
commit
0301b2e41a
|
@ -192,26 +192,6 @@ class SoftwareDeployment(signal_responder.SignalResponder):
|
||||||
# dedicated API for changing state on signals
|
# dedicated API for changing state on signals
|
||||||
signal_needs_metadata_updates = False
|
signal_needs_metadata_updates = False
|
||||||
|
|
||||||
def _signal_transport_cfn(self):
|
|
||||||
return self.properties[
|
|
||||||
self.SIGNAL_TRANSPORT] == self.CFN_SIGNAL
|
|
||||||
|
|
||||||
def _signal_transport_heat(self):
|
|
||||||
return self.properties[
|
|
||||||
self.SIGNAL_TRANSPORT] == self.HEAT_SIGNAL
|
|
||||||
|
|
||||||
def _signal_transport_none(self):
|
|
||||||
return self.properties[
|
|
||||||
self.SIGNAL_TRANSPORT] == self.NO_SIGNAL
|
|
||||||
|
|
||||||
def _signal_transport_temp_url(self):
|
|
||||||
return self.properties[
|
|
||||||
self.SIGNAL_TRANSPORT] == self.TEMP_URL_SIGNAL
|
|
||||||
|
|
||||||
def _signal_transport_zaqar(self):
|
|
||||||
return self.properties.get(
|
|
||||||
self.SIGNAL_TRANSPORT) == self.ZAQAR_SIGNAL
|
|
||||||
|
|
||||||
def _build_properties(self, config_id, action):
|
def _build_properties(self, config_id, action):
|
||||||
props = {
|
props = {
|
||||||
'config_id': config_id,
|
'config_id': config_id,
|
||||||
|
|
Loading…
Reference in New Issue