Skip to content

Commit

Permalink
{Service Connector}: fix passwordless postgres cmd (#6748)
Browse files Browse the repository at this point in the history
* fix service connector passwordless postgres

* fix param error
  • Loading branch information
xfz11 authored Sep 13, 2023
1 parent 042aa04 commit 810c3b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/serviceconnector-passwordless/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Release History
===============
0.3.10
++++++
* make some improvements.

0.3.9
++++++
* Support `--customized-keys` and make some improvements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def enable_target_aad_auth(self):
def check_db_existence(self):
try:
db_info = run_cli_cmd(
'az postgres server db show --ids {}'.format(self.target_id))
'az postgres db show --ids {} -n {}'.format(self.target_id, self.dbname))
if db_info is None:
e = ResourceNotFoundError(
"No database found with name {}".format(self.dbname))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# --------------------------------------------------------------------------------------------


VERSION = '0.3.9'
VERSION = '0.3.10'
NAME = 'serviceconnector-passwordless'
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def connection_create_ext(cmd, client, # pylint: disable=too-many-locals,too-ma
service_endpoint=None,
private_endpoint=None,
store_in_connection_string=False,
customized_keys=None,
new_addon=False, no_wait=False,
yes=False,
# Resource.KubernetesCluster
cluster=None, scope=None, enable_csi=False,
customized_keys=None,
site=None, # Resource.WebApp
spring=None, app=None, deployment='default', # Resource.SpringCloud
# Resource.*Postgres, Resource.*Sql*
Expand Down Expand Up @@ -58,8 +58,8 @@ def local_connection_create_ext(cmd, client, # pylint: disable=too-many-locals,
secret_auth_info=None, secret_auth_info_auto=None,
user_account_auth_info=None, # new auth info
service_principal_auth_info_secret=None,
customized_keys=None,
no_wait=False,
customized_keys=None,
yes=False,
# Resource.*Postgres, Resource.*Sql*
server=None, database=None,
Expand Down

0 comments on commit 810c3b8

Please sign in to comment.