Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Allow specifying parameters to copy-dashboard.py via env variables;r=me
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Nov 11, 2014
1 parent 9a194f0 commit af0c935
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/copy-dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,17 @@ def download_testdata(url, baseurl, filename, options, metadatadir,
help="Skip downloading metadata JSON files")
parser.add_option("--dashboard-id", action="store",
dest="dashboard_id",
help="Only download information for dashboard id")
help="Only download information for dashboard id",
default=os.environ.get('DASHBOARD_ID'))
parser.add_option("--device-id", action="store",
dest="device_id",
help="Only download information for device id (must be used "
"in conjunction with --dashboard-id)")
parser.add_option("--branch-id", action="store",
"in conjunction with --dashboard-id)",
default=os.environ.get('DEVICE_ID'))
parser.add_option("--branch", action="store",
dest="branch_id",
help="Only download information for branch id")
help="Only download information for branch id",
default=os.environ.get('BRANCH'))
options, args = parser.parse_args()

if len(args) != 2:
Expand Down

0 comments on commit af0c935

Please sign in to comment.