[CRIU] [PATCH 2/5] iters: Rename
Pavel Emelyanov
xemul at parallels.com
Thu Oct 22 07:14:00 PDT 2015
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
p.haul | 12 ++++++------
phaul/{p_haul_iters.py => iters.py} | 0
2 files changed, 6 insertions(+), 6 deletions(-)
rename phaul/{p_haul_iters.py => iters.py} (100%)
diff --git a/p.haul b/p.haul
index 87b4087..2677165 100755
--- a/p.haul
+++ b/p.haul
@@ -3,7 +3,7 @@
import sys
import argparse
import logging
-import phaul.p_haul_iters
+import phaul.iters
import phaul.connection
import phaul.images
import phaul.criu_api
@@ -44,16 +44,16 @@ parser.add_argument("-j", "--shell-job",help ="Allow migration of shell jobs",
parser.add_argument('--no-pre-dump', dest='pre_dump', action='store_const',
- const=phaul.p_haul_iters.PRE_DUMP_DISABLE,
+ const=phaul.iters.PRE_DUMP_DISABLE,
help='Force disable pre-dumps')
parser.add_argument('--pre-dump', dest='pre_dump', action='store_const',
- const=phaul.p_haul_iters.PRE_DUMP_ENABLE,
+ const=phaul.iters.PRE_DUMP_ENABLE,
help='Force enable pre-dumps')
# If pre dumping is not explicitly enabled or disabled
-# it is phaul.p_haul_iters.PRE_DUMP_AUTO_DETECT
+# it is phaul.iters.PRE_DUMP_AUTO_DETECT
-parser.set_defaults(pre_dump=phaul.p_haul_iters.PRE_DUMP_AUTO_DETECT)
+parser.set_defaults(pre_dump=phaul.iters.PRE_DUMP_AUTO_DETECT)
args = parser.parse_args()
@@ -73,7 +73,7 @@ connection = phaul.connection.establish(args.fdrpc, args.fdmem, args.fdfs)
# Start the migration
ph_type = args.type, args.id
-worker = phaul.p_haul_iters.phaul_iter_worker(ph_type, connection)
+worker = phaul.iters.phaul_iter_worker(ph_type, connection)
worker.set_options(vars(args))
worker.start_migration()
diff --git a/phaul/p_haul_iters.py b/phaul/iters.py
similarity index 100%
rename from phaul/p_haul_iters.py
rename to phaul/iters.py
--
1.9.3
More information about the CRIU
mailing list