Skip to content

Commit

Permalink
RDS: Fix config copy (#8382)
Browse files Browse the repository at this point in the history
Original code was popping the `backend` attribute off of the existing cluster instance.
  • Loading branch information
bpandola authored Dec 8, 2024
1 parent f9730f7 commit 5e5e450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/rds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def master_user_secret(self) -> Dict[str, Any]:
}

def get_cfg(self) -> Dict[str, Any]:
cfg = self.__dict__
cfg = self.__dict__.copy()
cfg.pop("backend")
cfg["master_user_password"] = cfg.pop("_master_user_password")
cfg["enable_http_endpoint"] = cfg.pop("_enable_http_endpoint")
Expand Down

0 comments on commit 5e5e450

Please sign in to comment.