From 8428df97ca58e5838b60344bc7eeb0a9ec359cbb Mon Sep 17 00:00:00 2001 From: Yogesh Mahajan Date: Fri, 28 Apr 2023 15:16:22 +0530 Subject: [PATCH] Fixed the error occurring while postgresql cloud instance deployment on AWS RDS. --- web/pgacloud/providers/{rds.py => aws.py} | 2 +- web/pgadmin/misc/cloud/__init__.py | 2 +- web/pgadmin/misc/cloud/utils/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename web/pgacloud/providers/{rds.py => aws.py} (99%) diff --git a/web/pgacloud/providers/rds.py b/web/pgacloud/providers/aws.py similarity index 99% rename from web/pgacloud/providers/rds.py rename to web/pgacloud/providers/aws.py index 136882871..7fbf25e6f 100644 --- a/web/pgacloud/providers/rds.py +++ b/web/pgacloud/providers/aws.py @@ -44,7 +44,7 @@ class RdsProvider(AbsProvider): def init_args(self, parsers): """ Create the command line parser for this provider """ - self.parser = parsers.add_parser('rds', + self.parser = parsers.add_parser('aws', help='Amazon RDS PostgreSQL', epilog='Credentials are read from ' '~/.aws/config by default and ' diff --git a/web/pgadmin/misc/cloud/__init__.py b/web/pgadmin/misc/cloud/__init__.py index 64d5aeed5..6a31c3943 100644 --- a/web/pgadmin/misc/cloud/__init__.py +++ b/web/pgadmin/misc/cloud/__init__.py @@ -133,7 +133,7 @@ def deploy_on_cloud(): """Deploy on Cloud.""" data = json.loads(request.data) - if data['cloud'] == 'rds': + if data['cloud'] == 'aws': status, p, resp = deploy_on_rds(data) elif data['cloud'] == 'biganimal': status, p, resp = deploy_on_biganimal(data) diff --git a/web/pgadmin/misc/cloud/utils/__init__.py b/web/pgadmin/misc/cloud/utils/__init__.py index bfc9289c4..56f5cdb3c 100644 --- a/web/pgadmin/misc/cloud/utils/__init__.py +++ b/web/pgadmin/misc/cloud/utils/__init__.py @@ -66,7 +66,7 @@ class CloudProcessDesc(IProcessDesc): self.instance_name = _instance_name self.provider = 'Amazon RDS' - if _provider == 'rds': + if _provider == 'aws': self.provider = 'Amazon RDS' elif _provider == 'azure': self.provider = 'Azure Database'