forked from platypush/platypush
s/instance/instance_name/g
in LinodeInstanceStatusChanged
.
For sake of consistency - we also have `instance_id` and having the instance name assigned to the `instance` attribute is quite ambiguous.
This commit is contained in:
parent
efe400f921
commit
c0251ef2f7
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ class LinodeInstanceStatusChanged(LinodeEvent):
|
||||||
self,
|
self,
|
||||||
*args,
|
*args,
|
||||||
instance_id: int,
|
instance_id: int,
|
||||||
instance: str,
|
instance_name: str,
|
||||||
status: str,
|
status: str,
|
||||||
old_status: Optional[str] = None,
|
old_status: Optional[str] = None,
|
||||||
**kwargs
|
**kwargs
|
||||||
|
@ -32,7 +32,7 @@ class LinodeInstanceStatusChanged(LinodeEvent):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
*args,
|
*args,
|
||||||
instance_id=instance_id,
|
instance_id=instance_id,
|
||||||
instance=instance,
|
instance_name=instance_name,
|
||||||
status=status,
|
status=status,
|
||||||
old_status=old_status,
|
old_status=old_status,
|
||||||
**kwargs
|
**kwargs
|
||||||
|
|
|
@ -118,7 +118,7 @@ class LinodePlugin(RunnablePlugin, CloudInstanceEntityManager, EnumSwitchEntityM
|
||||||
get_bus().post(
|
get_bus().post(
|
||||||
LinodeInstanceStatusChanged(
|
LinodeInstanceStatusChanged(
|
||||||
instance_id=instance.id,
|
instance_id=instance.id,
|
||||||
instance=instance.name,
|
instance_name=instance.name,
|
||||||
status=instance.status,
|
status=instance.status,
|
||||||
old_status=(
|
old_status=(
|
||||||
status[instance.id].status
|
status[instance.id].status
|
||||||
|
|
Loading…
Reference in a new issue