Fixed the error occurring while postgresql cloud instance deployment on AWS RDS.

This commit is contained in:
Yogesh Mahajan 2023-04-28 15:16:22 +05:30 committed by GitHub
parent 978979c39f
commit 8428df97ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class RdsProvider(AbsProvider):
def init_args(self, parsers): def init_args(self, parsers):
""" Create the command line parser for this provider """ """ Create the command line parser for this provider """
self.parser = parsers.add_parser('rds', self.parser = parsers.add_parser('aws',
help='Amazon RDS PostgreSQL', help='Amazon RDS PostgreSQL',
epilog='Credentials are read from ' epilog='Credentials are read from '
'~/.aws/config by default and ' '~/.aws/config by default and '

View File

@ -133,7 +133,7 @@ def deploy_on_cloud():
"""Deploy on Cloud.""" """Deploy on Cloud."""
data = json.loads(request.data) data = json.loads(request.data)
if data['cloud'] == 'rds': if data['cloud'] == 'aws':
status, p, resp = deploy_on_rds(data) status, p, resp = deploy_on_rds(data)
elif data['cloud'] == 'biganimal': elif data['cloud'] == 'biganimal':
status, p, resp = deploy_on_biganimal(data) status, p, resp = deploy_on_biganimal(data)

View File

@ -66,7 +66,7 @@ class CloudProcessDesc(IProcessDesc):
self.instance_name = _instance_name self.instance_name = _instance_name
self.provider = 'Amazon RDS' self.provider = 'Amazon RDS'
if _provider == 'rds': if _provider == 'aws':
self.provider = 'Amazon RDS' self.provider = 'Amazon RDS'
elif _provider == 'azure': elif _provider == 'azure':
self.provider = 'Azure Database' self.provider = 'Azure Database'