Skip to content

Commit

Permalink
flake8 fixes and use double-quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Jun 23, 2021
1 parent 1ce30e2 commit 1124780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/plugins/enclosure_/map.py
Expand Up @@ -143,7 +143,7 @@ async def _map_enclosures(self, enclosures, slots):
{
"id": "mapped_enclosure_0",
"name": "Drive Bays",
"model": enclosures[0]['model'],
"model": enclosures[0]["model"],
"controller": True,
"elements": [
{
Expand All @@ -161,7 +161,7 @@ async def _map_enclosures(self, enclosures, slots):
# ability to support expansion shelves, then we need to add them
# back in here so drive identification works
for enclosure in enclosures:
if enclosure['controller'] == False:
if not enclosure["controller"]:
mapped.append(enclosure)

return mapped

0 comments on commit 1124780

Please sign in to comment.