-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Everytime we instantiate a new instance of `cli.Client` its `__init__` method code tries to make communication with the remote host to determine if it is a local or ssh machine to be used. The communication with `machine` should be done only when it is necessary, which is when the `run` command is called. Solution: Transform `machine` in a lazy `@property` then it is instantiated only when it is first called.
- Loading branch information
1 parent
34ac7e2
commit c7a71b1
Showing
2 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters