summaryrefslogtreecommitdiff
path: root/barbicanclient/barbican_cli/v1/orders.py
diff options
context:
space:
mode:
Diffstat (limited to 'barbicanclient/barbican_cli/v1/orders.py')
-rw-r--r--barbicanclient/barbican_cli/v1/orders.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/barbicanclient/barbican_cli/v1/orders.py b/barbicanclient/barbican_cli/v1/orders.py
index 713f907..385d265 100644
--- a/barbicanclient/barbican_cli/v1/orders.py
+++ b/barbicanclient/barbican_cli/v1/orders.py
@@ -67,7 +67,7 @@ class CreateOrder(show.ShowOne):
request_data = None
if args.request_file:
try:
- request_data = file(args.request_file).read()
+ request_data = open(args.request_file, 'r').read()
except IOError:
raise ValueError(
'Couldn\'t read request file %s.' % args.request_file)