Skip to content

Commit

Permalink
pylxd/models: Improve type check
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jan 9, 2025
1 parent 70f7cf4 commit d4fa5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylxd/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def execute(
:returns: A tuple of `(exit_code, stdout, stderr)`
:rtype: _InstanceExecuteResult() namedtuple
"""
if isinstance(commands, str):
if not isinstance(commands, list):
raise TypeError("First argument must be a list.")
if environment is None:
environment = {}
Expand Down

0 comments on commit d4fa5ee

Please sign in to comment.