Skip to content
Snippets Groups Projects
Unverified Commit 48c5998a authored by Ryan Beisner's avatar Ryan Beisner
Browse files

Fix lint re: py3-first and py2 compat

Change-Id: I2018de28dc4a3767af91a76b9ad8dd1175bec513
parent 45a26002
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
# Copyright 2015 Canonical Ltd.
#
import json
import six
from charmhelpers.core.hookenv import (
log,
......@@ -27,6 +28,7 @@ from charmhelpers.contrib.storage.linux.ceph import (
ReplicatedPool,
)
# This comes from http://docs.ceph.com/docs/master/rados/operations/pools/
# This should do a decent job of preventing people from passing in bad values.
# It will give a useful error message
......@@ -44,8 +46,8 @@ POOL_KEYS = {
"write_fadvise_dontneed": [bool],
"noscrub": [bool],
"nodeep-scrub": [bool],
"hit_set_type": [basestring, ["bloom", "explicit_hash",
"explicit_object"]],
"hit_set_type": [six.string_types, ["bloom", "explicit_hash",
"explicit_object"]],
"hit_set_count": [int, [1, 1]],
"hit_set_period": [int],
"hit_set_fpp": [float, [0.0, 1.0]],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment