State source code encoding

This patch adds explicit notation of encoding of source code to avoid
potential runtime encoding errors. More info in [1]

[1] https://www.python.org/dev/peps/pep-0263/

Change-Id: Ibe7bfc80eaae3ce68c3b4e9daf09b8156c58054c
This commit is contained in:
Martin Mágr 2016-11-23 11:08:17 +01:00
parent 16aeaf8b11
commit 2156c64dcd
13 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#
@ -124,4 +125,3 @@ def _pacemaker_host_check():
def pacemaker_host_check():
utils.safe_run(_pacemaker_host_check)

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Openstack Monitoring script for Sensu / Nagios
#