Skip to content

Commit

Permalink
Merge pull request #392 from mattjala/fix_lint_errors
Browse files Browse the repository at this point in the history
Fix flake8 errors
  • Loading branch information
mattjala authored Sep 10, 2024
2 parents c5852a2 + fe4c937 commit c259041
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hsds/domain_dn.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def PUT_Domain(request):
now = getNow(app)
domain_json["created"] = now
domain_json["lastModified"] = now
#if "class" in body_json:
# if "class" in body_json:
# domain_json["class"] = body_json["class"]

# write the domain json to S3 immediately so it will show up in a get
Expand Down
8 changes: 4 additions & 4 deletions hsds/domain_sn.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ async def GET_Domain(request):
rsp_json["domain_objs"] = domain_objs

# include domain class if present
#if "class" in domain_json:
# if "class" in domain_json:
# rsp_json["class"] = domain_json["class"]

# include dn_ids if requested
Expand Down Expand Up @@ -901,14 +901,14 @@ async def PUT_Domain(request):
linked_domain = None
linked_bucket = None
root_id = None
#domain_class = None
# domain_class = None

if body and "folder" in body:
if body["folder"]:
is_folder = True
if body and "owner" in body:
owner = body["owner"]
#if body and "class" in body:
# if body and "class" in body:
# domain_class = body["class"]
if body and "linked_domain" in body:
if is_folder:
Expand Down Expand Up @@ -1049,7 +1049,7 @@ async def PUT_Domain(request):
if root_id:
body["root"] = root_id

#if domain_class:
# if domain_class:
# body["class"] = domain_class

log.debug(f"creating domain: {domain} with body: {body}")
Expand Down
2 changes: 1 addition & 1 deletion testall.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

integ_tests = ('uptest', 'setup_test', 'domain_test', 'group_test',
'link_test', 'attr_test', 'datatype_test', 'dataset_test',
'acl_test', 'value_test', #'filter_test',
'acl_test', 'value_test', # 'filter_test',
'pointsel_test', 'query_test', 'vlen_test')

skip_unit = False
Expand Down
2 changes: 1 addition & 1 deletion tests/integ/domain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def testCreateDomainWithCustomClass(self):
compressors = rspJson["compressors"]
for compressor in EXPECTED_COMPRESSORS:
self.assertTrue(compressor in compressors)
# do a get on the new domain
rsp = self.session.get(req, headers=headers)
self.assertEqual(rsp.status_code, 200)
Expand Down

0 comments on commit c259041

Please sign in to comment.