Merge "Fix py3 issue on fernet-manage and update-endpoint"
This commit is contained in:
commit
f191c62d13
@ -17,7 +17,10 @@ limitations under the License.
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
import ConfigParser
|
||||
try:
|
||||
import ConfigParser
|
||||
except ImportError:
|
||||
import configparser as ConfigParser
|
||||
import logging
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
|
@ -91,7 +91,7 @@ def read_from_files():
|
||||
for key in keys:
|
||||
with open(FERNET_DIR + key, 'r') as f:
|
||||
data[key] = f.read()
|
||||
if len(keys):
|
||||
if len(list(keys)):
|
||||
LOG.debug("Keys read from files: %s", keys)
|
||||
else:
|
||||
LOG.warn("No keys were read from files.")
|
||||
|
Loading…
Reference in New Issue
Block a user