mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 02:30:21 -06:00
Fixed the error occurring while postgresql cloud instance deployment on AWS RDS.
This commit is contained in:
parent
978979c39f
commit
8428df97ca
@ -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 '
|
@ -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)
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user