Skip to content

Commit b54cba7

Browse files
author
mstanescu_adobe
committed
Keep import at top
1 parent 3ed8a4e commit b54cba7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ops/inventory/sshconfig.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# governing permissions and limitations under the License.
1010

1111
import os
12-
from posix import stat
12+
import socketserver
1313
from shutil import copy
1414
from pathlib import Path
1515
from ansible.playbook.play import display
@@ -99,7 +99,6 @@ def get_proxy_type_information(self, cluster_config, args):
9999
return scb_enabled, teleport_enabled
100100

101101
def get_random_generated_port(self):
102-
import socketserver
103102
with socketserver.TCPServer(("localhost", 0), None) as s:
104103
generated_port = s.server_address[1]
105104
display.display(f"Using auto generated port {generated_port} for scb proxy port",

0 commit comments

Comments
 (0)