[ARVADOS] updated: 1.3.0-1921-gb0f2bbde0
Git user
git at public.curoverse.com
Tue Nov 26 20:07:06 UTC 2019
Summary of changes:
tools/vocabulary-migrate/vocabulary-migrate.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
via b0f2bbde029e5402a1174423e93a3bdfb5ce9050 (commit)
from c6b25922097476f2642ad8dfbfbd4d583d28daf4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b0f2bbde029e5402a1174423e93a3bdfb5ce9050
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Tue Nov 26 17:06:03 2019 -0300
15849: Adds a message for dry-run mode when nothing should be migrated.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/tools/vocabulary-migrate/vocabulary-migrate.py b/tools/vocabulary-migrate/vocabulary-migrate.py
index d178228c0..920344b32 100644
--- a/tools/vocabulary-migrate/vocabulary-migrate.py
+++ b/tools/vocabulary-migrate/vocabulary-migrate.py
@@ -111,8 +111,10 @@ def main(arguments=None):
if not args.dry_run and migrated_counter % 100 == 0:
logger.info('Migrating {} objects...'.format(migrated_counter))
- if not args.dry_run:
- logger.info('Done, total object migrated: {}.'.format(migrated_counter))
+ if args.dry_run and migrated_counter == 0:
+ logger.info('Nothing to do.')
+ elif not args.dry_run:
+ logger.info('Done, total objects migrated: {}.'.format(migrated_counter))
return 0
if __name__ == "__main__":
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list