Skip to content

Commit

Permalink
call the function not the module
Browse files Browse the repository at this point in the history
  • Loading branch information
paregorios committed Apr 3, 2015
1 parent c96076d commit f678d11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/post-migrate.py
Expand Up @@ -4,6 +4,7 @@
script to run after running migrate.sh
"""

import _mypath
import argparse
from functools import wraps
from isaw.images import package, proof_sheet, validate_path
Expand All @@ -13,6 +14,7 @@
import sys
import traceback


DEFAULTLOGLEVEL = logging.WARNING

def arglogger(func):
Expand All @@ -34,7 +36,7 @@ def main (args):
"""
logger = logging.getLogger(sys._getframe().f_code.co_name)

real_path = validate_path(args.tgt, type='directory')
real_path = validate_path.validate_path(args.tgt, type='directory')
logger.info("beginning post-migration on {0}".format(real_path))
# get a list of all the directories at path, determine which are image packages, open and validate
directories = [o for o in os.listdir(real_path) if os.path.isdir(os.path.join(real_path,o))]
Expand Down

0 comments on commit f678d11

Please sign in to comment.