Skip to content

Commit

Permalink
Merge pull request #337 from NASA-PDS/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
nutjob4life authored Jun 16, 2022
2 parents 625955c + 76c48a8 commit 83b02b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pds_doi_service/api/controllers/dois_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def post_dois(action, submitter, node, url=None, body=None, force=False):
format. Only used when action is set to "draft" or "update". If provided, any
requestBody contents are ignored by the update action.
body : str or dict
requestBody contents. If provided, should contain an PSD4 label (for
requestBody contents. If provided, should contain an PDS4 label (for
update) or one or more LabelPayload structures (for reserve). Required if
the action is set to "reserve", otherwise it can be used optionally in
lieu of url when the action is set to "draft" or "update".
Expand Down
4 changes: 2 additions & 2 deletions src/pds_doi_service/core/input/input_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def parse_xml_file(self, xml_path):

xml_tree = etree.fromstring(xml_contents.encode())

# Check if we were handed a PSD4 label
# Check if we were handed a PDS4 label
if self._label_util.is_pds4_label(xml_tree):
logger.info("Parsing xml file %s as a PSD4 label", basename(xml_path))
logger.info("Parsing xml file %s as a PDS4 label", basename(xml_path))

try:
dois.append(self._label_util.get_doi_fields_from_pds4(xml_tree))
Expand Down
2 changes: 1 addition & 1 deletion src/pds_doi_service/core/input/pds4_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self):
}

def is_pds4_label(self, xml_tree):
# If reading xpaths with the PSD4 namespace returns anything, it should
# If reading xpaths with the PDS4 namespace returns anything, it should
# be safe to assume its a PDS4 label, additional validation can occur
# downstream.
if self.read_pds4(xml_tree):
Expand Down

0 comments on commit 83b02b0

Please sign in to comment.