Skip to content

Commit

Permalink
virt: remove unused private methods
Browse files Browse the repository at this point in the history
Signed-off-by: Nadav Goldin <[email protected]>
  • Loading branch information
nvgoldin committed Jul 26, 2017
1 parent b96382b commit bbdf649
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lago/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import json
import logging
import os
import uuid
import yaml

from lago import log_utils, plugins, utils
Expand All @@ -35,34 +34,6 @@
log_task = functools.partial(log_utils.log_task, logger=LOGGER)


def _gen_ssh_command_id():
return uuid.uuid4().hex[:8]


def _guestfs_copy_path(g, guest_path, host_path):
if g.is_file(guest_path):
with open(host_path, 'w') as f:
f.write(g.read_file(guest_path))
elif g.is_dir(guest_path):
os.mkdir(host_path)
for path in g.ls(guest_path):
_guestfs_copy_path(
g,
os.path.join(
guest_path,
path,
),
os.path.join(host_path, os.path.basename(path)),
)


def _path_to_xml(basename):
return os.path.join(
os.path.dirname(__file__),
basename,
)


class VirtEnv(object):
'''Env properties:
* prefix
Expand Down

0 comments on commit bbdf649

Please sign in to comment.