Skip to content

Commit 1031e1c

Browse files
committed
fix: update the sm regional tests for delayed destroy
1 parent 3845911 commit 1031e1c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

secretmanager/snippets/regional_samples/disable_regional_secret_delayed_destroy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ def disable_regional_secret_delayed_destroy(
6363
"location_id", help="id of the location where secret is to be created"
6464
)
6565
parser.add_argument("secret_id", help="id of the secret to act on")
66-
parser.add_argument(
67-
"version_destroy_ttl", help="version_destroy_ttl you want to add"
68-
)
6966
args = parser.parse_args()
7067

7168
disable_regional_secret_delayed_destroy(
72-
args.project_id, args.location_id, args.secret_id, args.version_destroy_ttl
69+
args.project_id, args.location_id, args.secret_id
7370
)

secretmanager/snippets/regional_samples/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def regional_secret_with_delayed_destroy(
218218
location_id: str,
219219
secret_id: str,
220220
version_destroy_ttl: int,
221-
):
221+
) -> Iterator[str]:
222222
print("creating secret with given secret id.")
223223

224224
parent = f"projects/{project_id}/locations/{location_id}"

0 commit comments

Comments
 (0)