mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Fix wrong number of arguments for the EBS instance.
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@ class AWSConnection:
|
||||
if not self.available:
|
||||
return False
|
||||
|
||||
tags = {'Name': self.cluster_name, 'Role': role, 'Instance': self.instance_id}
|
||||
tags = {'Name': 'spilo_'+self.cluster_name, 'Role': role, 'Instance': self.instance_id}
|
||||
try:
|
||||
conn = boto.ec2.connect_to_region(self.region)
|
||||
# get all volumes attached to the current instance
|
||||
@@ -72,7 +72,7 @@ class AWSConnection:
|
||||
|
||||
def on_role_change(self, new_role):
|
||||
self._tag_ec2(new_role)
|
||||
self._tag_ebs('spilo_' + self.cluster_name, new_role)
|
||||
self._tag_ebs(new_role)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import yaml
|
||||
|
||||
Reference in New Issue
Block a user