diff --git a/covalent_ec2_plugin/ec2.py b/covalent_ec2_plugin/ec2.py index cabbf54..b90892a 100644 --- a/covalent_ec2_plugin/ec2.py +++ b/covalent_ec2_plugin/ec2.py @@ -105,7 +105,6 @@ def __init__( poll_freq: int = 15, do_cleanup: bool = True, ) -> None: - username = username or get_config("executors.ec2.username") hostname = hostname or get_config("executors.ec2.hostname") profile = profile or get_config("executors.ec2.profile") @@ -149,7 +148,6 @@ def __init__( self.covalent_version = TEMP_COVALENT_VERSION async def _run_async_subprocess(self, cmd: List[str], cwd=None, log_output: bool = False): - proc = await asyncio.create_subprocess_shell( " ".join(cmd), stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, cwd=cwd ) diff --git a/tests/ec2_test.py b/tests/ec2_test.py index fd014df..3c14ccf 100644 --- a/tests/ec2_test.py +++ b/tests/ec2_test.py @@ -100,7 +100,6 @@ async def test_setup(executor: ec2.EC2Executor, mocker: mock, tmp_path: Path): mocker.patch("covalent_ec2_plugin.ec2.Path.exists", return_value=False) with mock.patch("builtins.open", mock.mock_open()) as mocked_open: - await executor.setup(mock_task_metadata) ec2_client_mock.create_key_pair.assert_called_with(KeyName=mock_key_name)