Skip to content

Commit f1fc6aa

Browse files
committed
Fixed flake8 error
1 parent 776ef3b commit f1fc6aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

insights/specs/datasources/host_key_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
from insights.core.context import HostContext
88
from insights.core.exceptions import SkipComponent
99
from insights.core.plugins import datasource
10-
from insights.core.spec_factory import DatasourceProvider
10+
from insights.core.spec_factory import DatasourceProvider
1111

1212
ERROR_KEY = "error: Could not load host key:"
1313
VAR_LOG_MSG = '/var/log/messages'
1414

15+
1516
@datasource(HostContext)
1617
def host_key_files(broker):
1718
"""

insights/tests/datasources/test_host_key_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
from mock.mock import patch, mock_open
32
from insights.core.spec_factory import DatasourceProvider
43
from insights.specs.datasources.host_key_files import host_key_files
@@ -14,6 +13,7 @@
1413
/etc/ssh_host_dsa_key 0
1514
""".strip()
1615

16+
1717
@patch(
1818
'insights.specs.datasources.host_key_files.open', new_callable=mock_open, read_data=VAR_LOGS.splitlines()
1919
)

0 commit comments

Comments
 (0)