Skip to content

Commit

Permalink
fix no attribute error (#7481)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfz11 committed Apr 11, 2024
1 parent 63ebbbb commit cdf5400
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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
===============
1.0.3
++++++
* Fix no attribute error

1.0.2
++++++
* Bypass error of `az postgres flexible-server db show`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def __init__(self, cmd, target_id, target_type, auth_info, connection_name, skip
target_segments = parse_resource_id(target_id)
self.server = target_segments.get('name')
self.dbname = target_segments.get('child_name_1')
self.admin_username = self.login_username

def check_db_existence(self):
try:
Expand Down Expand Up @@ -638,6 +639,7 @@ def __init__(self, cmd, target_id, target_type, auth_info, connection_name, skip
self.host = self.db_server + self.endpoint
self.dbname = target_segments.get('child_name_1')
self.ip = ""
self.admin_username = self.login_username

def check_db_existence(self):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# --------------------------------------------------------------------------------------------


VERSION = '1.0.2'
VERSION = '1.0.3'
NAME = 'serviceconnector-passwordless'
2 changes: 1 addition & 1 deletion src/serviceconnector-passwordless/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")


VERSION = '1.0.2'
VERSION = '1.0.3'
try:
from azext_serviceconnector_passwordless.config import VERSION
except ImportError:
Expand Down

0 comments on commit cdf5400

Please sign in to comment.