We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b20167 commit 11c1b7aCopy full SHA for 11c1b7a
1 file changed
secretmanager/snippets/create_secret.py
@@ -19,8 +19,6 @@
19
import argparse
20
from typing import Optional
21
22
-from google.cloud import secretmanager
23
-
24
25
# [START secretmanager_create_secret]
26
def create_secret(
@@ -81,7 +79,7 @@ def create_secret(
81
79
)
82
80
parser.add_argument("project_id", help="id of the GCP project")
83
parser.add_argument("secret_id", help="id of the secret to create")
84
- parser.add_argument("ttl", help="time to live for secrets, f.e. '600s' ")
+ parser.add_argument("--ttl", help="time to live for secrets, f.e. '600s' ")
85
args = parser.parse_args()
86
87
create_secret(args.project_id, args.secret_id, args.ttl)
0 commit comments