Commit 86b85d61 authored by Daniel STAN's avatar Daniel STAN
Browse files

etat_imprimante: executable (pour tests)

parent a7d75b8f
#!/usr/bin/env python #!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
etat_imprimante.py etat_imprimante.py
...@@ -13,7 +13,7 @@ import BeautifulSoup ...@@ -13,7 +13,7 @@ import BeautifulSoup
import requests import requests
import HTMLParser import HTMLParser
import sys import sys
from hptools import snmp from gestion.hptools import snmp
STATUS_URL = 'https://imprimante.adm.crans.org/hp/device/DeviceStatus/Index' STATUS_URL = 'https://imprimante.adm.crans.org/hp/device/DeviceStatus/Index'
CA = '/etc/ssl/certs/cacert.org.pem' CA = '/etc/ssl/certs/cacert.org.pem'
...@@ -38,3 +38,6 @@ def _http_status(): ...@@ -38,3 +38,6 @@ def _http_status():
except: except:
raise ErreurCommunication() raise ErreurCommunication()
if __name__ == '__main__':
for x in etat():
print x
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment