Skip to content

Commit 469056d

Browse files
author
Bryan Apperson
committed
linting and adding example usage
1 parent 98d5cb9 commit 469056d

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

examples/copy_pool.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
from pyradosutils import common_utils
3+
4+
# Optionally you can pass in the keyring and ceph.conf
5+
# locations as strings.
6+
thiscluster = common_utils.Cluster()
7+
# Replace these empty stings with your source and target pool names
8+
source = ''
9+
target = ''
10+
thiscluster.copy_pool(source, target)

modules/__init__.py

100644100755
File mode changed.

modules/common_utils.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
import rados
33

44
'''Utilities for RADOS in python.

setup.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
index = sys.argv.index('--sourcedir')
1313
sys.argv.pop(index)
1414
sourcedir = sys.argv.pop(index)
15-
print "starting dir:", startdir
15+
print ("starting dir:", startdir)
1616
os.chdir(sourcedir)
17-
print "present dir:", os.getcwd()
17+
print ("present dir:", os.getcwd())
1818

1919

2020
def get_version():

0 commit comments

Comments
 (0)