elastizabbix icon indicating copy to clipboard operation
elastizabbix copied to clipboard

Bug. It will Always remove lock.

Open SawyerLan opened this issue 6 years ago • 0 comments

    if should_update and created_file(lock):
        try:
            d = urllib2.urlopen(endpoint).read()
            with open(cache, 'w') as f: f.write(d)
        except Exception as e:
            print e
        if os.path.exists(lock):
            os.remove(lock)

This will always remove lock file.

SawyerLan avatar Apr 14 '18 12:04 SawyerLan