Commit 86b85d61 authored by Daniel Stan's avatar Daniel Stan

etat_imprimante: executable (pour tests)

parent a7d75b8f
#!/usr/bin/env python
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
"""
etat_imprimante.py
......@@ -13,7 +13,7 @@ import BeautifulSoup
import requests
import HTMLParser
import sys
from hptools import snmp
from gestion.hptools import snmp
STATUS_URL = 'https://imprimante.adm.crans.org/hp/device/DeviceStatus/Index'
CA = '/etc/ssl/certs/cacert.org.pem'
......@@ -38,3 +38,6 @@ def _http_status():
except:
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