Skip to content

Commit d0556f0

Browse files
committed
squash:ruff-format
1 parent 57301b5 commit d0556f0

File tree

7 files changed

+12
-17
lines changed

7 files changed

+12
-17
lines changed

tmt/steps/provision/__init__.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def scripts_path(self) -> Path:
10921092

10931093
@property
10941094
def lognames(self) -> list[str]:
1095-
""" Return name list of logs the guest could provide. """
1095+
"""Return name list of logs the guest could provide."""
10961096

10971097
return []
10981098

@@ -1661,11 +1661,7 @@ def acquire_log(self, logname: str) -> Optional[str]:
16611661
"""
16621662
raise NotImplementedError
16631663

1664-
def store_log(
1665-
self,
1666-
path: Path,
1667-
content: str,
1668-
logname: Optional[str] = None) -> None:
1664+
def store_log(self, path: Path, content: str, logname: Optional[str] = None) -> None:
16691665
"""
16701666
Save log content to a file.
16711667
@@ -1682,12 +1678,11 @@ def store_log(
16821678
elif logname:
16831679
(path / logname).write_text(content)
16841680
else:
1685-
raise tmt.utils.GeneralError(
1686-
'Log path is a directory but log name is not defined.')
1681+
raise tmt.utils.GeneralError('Log path is a directory but log name is not defined.')
16871682

1688-
def fetch_logs(self,
1689-
dirpath: Optional[Path] = None,
1690-
lognames: Optional[list[str]] = None) -> None:
1683+
def fetch_logs(
1684+
self, dirpath: Optional[Path] = None, lognames: Optional[list[str]] = None
1685+
) -> None:
16911686
"""
16921687
Get log content and save it to a directory.
16931688

tmt/steps/provision/artemis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def is_ready(self) -> bool:
494494

495495
@property
496496
def lognames(self) -> list[str]:
497-
""" Return name list of logs the guest could provide. """
497+
"""Return name list of logs the guest could provide."""
498498
return []
499499

500500
def _create(self) -> None:

tmt/steps/provision/connect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class GuestConnect(tmt.steps.provision.GuestSsh):
8787

8888
@property
8989
def lognames(self) -> list[str]:
90-
""" Return name list of logs the guest could provide. """
90+
"""Return name list of logs the guest could provide."""
9191
return []
9292

9393
def reboot(

tmt/steps/provision/local.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def is_ready(self) -> bool:
3434

3535
@property
3636
def lognames(self) -> list[str]:
37-
""" Return name list of logs the guest could provide. """
37+
"""Return name list of logs the guest could provide."""
3838
return []
3939

4040
def _run_ansible(

tmt/steps/provision/mrack.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ def is_ready(self) -> bool:
11871187

11881188
@property
11891189
def lognames(self) -> list[str]:
1190-
""" Return name list of logs the guest could provide. """
1190+
"""Return name list of logs the guest could provide."""
11911191
return []
11921192

11931193
def _create(self, tmt_name: str) -> None:

tmt/steps/provision/podman.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def is_ready(self) -> bool:
130130

131131
@property
132132
def lognames(self) -> list[str]:
133-
""" Return name list of logs the guest could provide. """
133+
"""Return name list of logs the guest could provide."""
134134
return []
135135

136136
def wake(self) -> None:

tmt/steps/provision/testcloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def is_coreos(self) -> bool:
717717

718718
@property
719719
def lognames(self) -> list[str]:
720-
""" Return name list of logs the guest could provide. """
720+
"""Return name list of logs the guest could provide."""
721721
return []
722722

723723
def _get_url(self, url: str, message: str) -> requests.Response:

0 commit comments

Comments
 (0)