~ubuntu-branches/ubuntu/trusty/python-keystoneclient/trusty-proposed

« back to all changes in this revision

Viewing changes to keystoneclient/shell.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2013-11-14 10:51:32 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20131114105132-p1o428l7fclasv9e
Tags: 1:0.4.1-0ubuntu1
[ Adam Gandelman ]
* debian/patches: Refreshed.
* debian/patches/use-mox-dependency.patch: Use mox instead of mox3
  dependency.

[ Chuck Short ]
* New upstream release.
* debian/control:
  - open icehouse release.
  - Dropped python-d2to1 and python-httplib2 dependency.
* debian/patches/skip-tests-ubuntu.patch: Dropped no longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2010 Jacob Kaplan-Moss
2
 
# Copyright 2011 OpenStack LLC.
 
2
# Copyright 2011 OpenStack Foundation
3
3
# All Rights Reserved.
4
4
#
5
5
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
15
15
#    under the License.
16
16
 
17
17
"""
18
 
Command-line interface to the OpenStack Identity API.
 
18
Pending deprecation: Command-line interface to the OpenStack Identity API.
 
19
 
 
20
This CLI is pending deprecation in favor of python-openstackclient. For a
 
21
Python library, continue using python-keystoneclient.
 
22
 
19
23
"""
20
24
 
21
25
from __future__ import print_function
23
27
import argparse
24
28
import getpass
25
29
import os
 
30
import six
26
31
import sys
27
32
 
28
33
import keystoneclient
31
36
from keystoneclient.contrib.bootstrap import shell as shell_bootstrap
32
37
from keystoneclient import exceptions as exc
33
38
from keystoneclient.generic import shell as shell_generic
 
39
from keystoneclient.openstack.common import strutils
34
40
from keystoneclient import utils
35
41
from keystoneclient.v2_0 import shell as shell_v2_0
36
42
 
484
490
        OpenStackIdentityShell().main(sys.argv[1:])
485
491
 
486
492
    except Exception as e:
487
 
        print(e, file=sys.stderr)
 
493
        print(strutils.safe_encode(six.text_type(e)), file=sys.stderr)
488
494
        sys.exit(1)
489
495
 
490
496