Signed-off-by: Sage Weil <sage@redhat.com>
import json
import logging
import os
+import socket
import subprocess
import sys
import tempfile
import time
+import uuid
from distutils.spawn import find_executable
try:
return p
def get_hostname():
- import socket
return socket.gethostname()
def make_fsid():
- import uuid
return str(uuid.uuid1())
def is_fsid(s):
- import uuid
try:
uuid.UUID(s)
except:
def get_config_and_keyring():
if args.config_and_keyring:
- import json
if args.config_and_keyring == '-':
try:
j = injected_stdin