]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: LOG.info instead of print 3172/head
authorLoic Dachary <ldachary@redhat.com>
Sat, 13 Dec 2014 11:20:03 +0000 (12:20 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 13 Dec 2014 15:44:59 +0000 (16:44 +0100)
When a non fatal error happens with parted, use LOG.info to display it
instead of print.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk

index c1e6e09678ea0d9c50316cfe1768e5c2bd3be77f..70009b5581508b9f0b31149c97d2e7622596c786 100755 (executable)
@@ -947,7 +947,7 @@ def get_free_partition_index(dev):
                 ],
             )
     except subprocess.CalledProcessError as e:
-        print 'cannot read partition index; assume it isn\'t present\n (Error: %s)' % e
+        LOG.info('cannot read partition index; assume it isn\'t present\n (Error: %s)' % e)
         return 1
 
     if not lines: