Issue is: when we provide wrong input type to below command. The exception is not handled appropriately.Please find the command output below.
[root@localhost swift]# swift-ring-builder account.builder create 10 3 a
Traceback (most recent call last):
File "/usr/bin/swift-ring-builder", line 24, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/swift/cli/ringbuilder.py", line 1287, in main
getattr(Commands, command, Commands.unknown)()
File "/usr/lib/python2.7/site-packages/swift/cli/ringbuilder.py", line 446, in create
builder = RingBuilder(int(argv[3]), float(argv[4]), int(argv[5]))
ValueError: invalid literal for int() with base 10: 'a'
Successful run is :-
[root@localhost swift]# swift-ring-builder account.builder create 10 3 1
[root@localhost swift]#
swift version is : python-swiftclient 3.3.0
Issue is: when we provide wrong input type to below command. The exception is not handled appropriately. Please find the command output below.
[root@localhost swift]# swift-ring-builder account.builder create 10 3 a swift-ring- builder" , line 24, in <module> exit(main( )) python2. 7/site- packages/ swift/cli/ ringbuilder. py", line 1287, in main Commands, command, Commands.unknown)() python2. 7/site- packages/ swift/cli/ ringbuilder. py", line 446, in create int(argv[ 3]), float(argv[4]), int(argv[5]))
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
getattr(
File "/usr/lib/
builder = RingBuilder(
ValueError: invalid literal for int() with base 10: 'a'
Successful run is :-
[root@localhost swift]# swift-ring-builder account.builder create 10 3 1
[root@localhost swift]#