sp-rand: reformat with 100 characters per line.
Change-Id: Id1e691fdd9af7f5ece3fda5912094ee23531be55
diff --git a/tools/sp-rand/src/sp_rand/cleanup.py b/tools/sp-rand/src/sp_rand/cleanup.py
index 767762b..384f6ab 100644
--- a/tools/sp-rand/src/sp_rand/cleanup.py
+++ b/tools/sp-rand/src/sp_rand/cleanup.py
@@ -52,9 +52,7 @@
print("Looking for target records for our volumes")
targets = {
- tgt.name: tgt.volume
- for tgt in iscsi.targets.values()
- if tgt.volume.startswith(prefix)
+ tgt.name: tgt.volume for tgt in iscsi.targets.values() if tgt.volume.startswith(prefix)
}
if targets:
@@ -116,16 +114,12 @@
if desc.snapshot:
print(f"Will detach snapshot {desc.volume} from client {desc.client}")
to_detach.append(
- sptypes.SnapshotReassignDesc(
- detach=[desc.client], force=True, snapshot=desc.volume
- )
+ sptypes.SnapshotReassignDesc(detach=[desc.client], force=True, snapshot=desc.volume)
)
else:
print(f"Will detach volume {desc.volume} from client {desc.client}")
to_detach.append(
- sptypes.VolumeReassignDesc(
- detach=[desc.client], force=True, volume=desc.volume
- )
+ sptypes.VolumeReassignDesc(detach=[desc.client], force=True, volume=desc.volume)
)
if to_detach:
@@ -192,10 +186,7 @@
parser.add_argument(
"--skip-api",
type=str,
- help=(
- "If explicitly given the 'yes' value, do not "
- "delete any volumes or snapshots"
- ),
+ help=("If explicitly given the 'yes' value, do not " "delete any volumes or snapshots"),
)
args = parser.parse_args()