Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gpachecoNI committed Jun 27, 2023
1 parent b1f2ab2 commit 4cb83ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilizes command line args to create a measurement using template files."""
import json
import logging
import pathlib
import re
Expand Down Expand Up @@ -169,10 +170,7 @@ def create_measurement(
annotations_description = ""
if collection is None:
collection = ""
annotation_tags = []
if tags is not None:
for n in tags:
annotation_tags.append(n)
annotation_tags = json.dumps(tags)

_create_file(
"measurement.py.mako",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"annotations": {
"ni/service.description": "Measurement description",
"ni/service.collection": "Measurement collection",
"ni/service.tags": ['M1', 'M2', 'M3']
"ni/service.tags": ["M1", "M2", "M3"]
}
}
]
Expand Down

0 comments on commit 4cb83ef

Please sign in to comment.