Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: infra_libs/event_mon/config.py

Issue 1939863002: Use correct types for the command line arguments (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/event_mon/config.py
diff --git a/infra_libs/event_mon/config.py b/infra_libs/event_mon/config.py
index 1c62ad24c07ac7d3fe3cb40271d0fbad8b00323f..e91545668922fcd1d3498a7c76489d2b8f6dc8b9 100644
--- a/infra_libs/event_mon/config.py
+++ b/infra_libs/event_mon/config.py
@@ -64,9 +64,9 @@ def add_argparse_options(parser):
help="Directory containing service accounts credentials.\n"
"Defaults to %(default)s"
)
- group.add_argument('--event-mon-http-timeout', default=10,
+ group.add_argument('--event-mon-http-timeout', default=10, type=int,
help='Timeout in seconds for HTTP requests to send events')
- group.add_argument('--event-mon-http-retry-backoff', default=2.,
+ group.add_argument('--event-mon-http-retry-backoff', default=2., type=float,
help='Time in seconds before retrying POSTing to the HTTP '
'endpoint. Randomized exponential backoff is applied on '
'subsequent retries.')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698