mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-02 23:53:13 -04:00
fixed version dunder
This commit is contained in:
@@ -10,7 +10,7 @@ from requests.packages.urllib3.exceptions import InsecureRequestWarning
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
from tinydb import TinyDB, Query
|
||||
from tinydbstorage.storage import MemoryStorage
|
||||
from version import __version__
|
||||
from version import VERSION
|
||||
|
||||
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
|
||||
verifySSL = os.getenv("VERIFY_SSL", 'False').lower() in ('true', '1', 't')
|
||||
@@ -31,7 +31,7 @@ log_handler.setFormatter(log_formatter)
|
||||
log = logging.getLogger("Node-Exporter")
|
||||
log.setLevel(LOGLEVEL)
|
||||
log.addHandler(log_handler)
|
||||
log.info("Node-Exporter - Version " + __version__ )
|
||||
log.info("Node-Exporter - Version " + VERSION )
|
||||
log.info("Log Level: " + os.environ.get('LOGLEVEL'))
|
||||
log.debug("Running with Variables:\nVerify SSL: " + str(verifySSL) + "\nZVM Host: " + zvm_url + "\nZVM Port: " + zvm_port + "\nClient-Id: " + client_id + "\nClient Secret: " + client_secret)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# version.py
|
||||
VERSION = "1.0.0"
|
||||
|
||||
def main():
|
||||
# Put your main program code here
|
||||
print(VERSION)
|
||||
|
||||
if __name__ == '__main__':
|
||||
# This code will be executed only when the file is run as the main program
|
||||
main()
|
||||
Reference in New Issue
Block a user