mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -18,9 +18,9 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
try:
|
||||
try:
|
||||
from sqlalchemy.orm import exc, joinedload
|
||||
|
||||
|
||||
from glance.common.cfg import CommonConfigOpts
|
||||
from glance.registry.db import models
|
||||
from glance.registry.db.api import get_session, configure_db
|
||||
|
@ -32,7 +32,7 @@ else:
|
|||
def load_conf():
|
||||
CONF = CommonConfigOpts(project="glance", prog="glance-registry")
|
||||
CONF()
|
||||
|
||||
|
||||
# Hide missing logger warning message
|
||||
sys.stderr = open(os.devnull, 'w')
|
||||
configure_db(CONF)
|
||||
|
@ -76,7 +76,7 @@ def print_values():
|
|||
for image in images:
|
||||
n_image_by_status[image["status"]] = n_image_by_status.get(image["status"], 0) + 1
|
||||
|
||||
for status in possible_status:
|
||||
for status in possible_status:
|
||||
print '%s.value %s' % (status, n_image_by_status.get(status, 0))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -86,7 +86,7 @@ if __name__ == '__main__':
|
|||
if argv[1] == 'config':
|
||||
print_config()
|
||||
elif argv[1] == 'autoconf':
|
||||
if not successful_import:
|
||||
if not successful_import:
|
||||
print 'no (failed import glance and/or sqlachemy module)'
|
||||
sys.exit(0)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue