Skip to content

Commit

Permalink
Azure: Handle read-only server-parameters (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Scheurer <[email protected]>
  • Loading branch information
BeTheFlow95 and florian-scheurer-mw authored Sep 26, 2023
1 parent a3a9cb1 commit 9bc3d18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions hybridcloud/backends/azure_postgresqlflexible.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ def compare():

# Iterate through the server properties that are currently set on the server
for parameter in self._db_client.configurations.list_by_server(self._resource_group, server_name):

if parameter.is_read_only:
continue

# Extensions which are set above are part of the server properties and shouldn't be reset
if parameter.name in IGNORE_RESET_PARAMETERS:
continue
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kubernetes==27.2.0
kopf==1.36.2
azure-mgmt-rdbms==10.1.0
azure-mgmt-rdbms==10.2.0b10
azure-identity==1.14.0
azure-mgmt-resource==23.0.1
psycopg2-binary==2.9.7
Expand Down

0 comments on commit 9bc3d18

Please sign in to comment.