8 Commits

Author SHA1 Message Date
Luong Anh Tuan
e5cb2569a6 Using sys.exit(main()) instead of main()
TrivialFix: Similar [1] in Kolla project
As we known, Exceptions are raised by the sys.exit() function. When they
are not handled, no stack traceback is printed in the Python interpreter.
Therefore, when using sys.exit(main()) instead of main()
may be more readable and reasonable.

[1] https://review.openstack.org/#/c/349353/

Change-Id: Ied52a7631da82a72f0dcf2fc9ed81840d24041d9
2016-09-26 03:23:44 +00:00
sonu.kumar
c7eca3fbd8 Another improvement of info level log messages
String interpolation should be delayed to be handled by the
logging code, rather than being done at the point of the
logging call.

So we should use-

LOG.info(_LI('some message: variable=%s'), variable)

instead of

LOG.info(_LI('some message: variable=%s') % variable)
Reference: http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: I409358d9e35813f1875993b96fce86a0e2bc940b
2015-11-27 13:15:03 +05:30
Kiall Mac Innes
9552ccc2c9 Switchover to oslo.i18n package
Change-Id: I18d9a21b75053d382fb5bbebba226eda4c174f0c
2014-07-24 14:47:44 -07:00
Jordan Cazamias
50295fb39e Fix style errors H305 and H307
H305: Imports not grouped correctly
H307: Like imports should be grouped together

Change-Id: Ic63d253e015298c7b952121a4b3634d2b1bdaf92
Implements: blueprint new-hacking-style-rules
2014-06-18 17:35:43 -05:00
Jordan Cazamias
cad8ab8785 Update hacking package, fix I18n style issues
Hacking package updated from '>=0.8.0,<0.9' to '>=0.9.2,<0.10'.
Many new style rules have been added, some of which Designate violates.
Only the style rules that pertain to I18n have been addressed.
The rest have been added to the ignore list in tox.ini for further review.

Change-Id: I5c559c491ff9bee2346b1589e7bb7e117137609b
Implements: blueprint standardize-logging
Closes-Bug: bug #1330540
2014-06-18 14:41:11 -05:00
Jordan Cazamias
a0d9b4cac6 Change log statements to meet I18n guidelines
Change-Id: Id76bcb71369302a559d2c2c5bd6046dff05a488e
Implements: blueprint standardize-logging
2014-06-11 17:08:45 -05:00
Kiall Mac Innes
517ec9531a Correct misspelled words
Change-Id: I7f98cd32ecd64e49d2fd7376ce5f4b6df9fe6ff9
Closes-Bug: 1257295
2014-02-20 16:20:58 +00:00
Artom Lifshitz
179a9aa265 Zoneextractor tool
zoneextractor.py helps on the client-side of the new zone
import API. It takes a BIND9 named.conf and writes out or prints a
zonefile for every configured master zone. Said zonefile can then be
curled or otherwise submitted to the zonefile import API.

Change-Id: Ibc15639771da52e678be067ec4474bcbcc2f0865
2013-10-24 09:40:53 -04:00