wojons / cloudflare-lb

Use cloudflare as a load balancer
MIT License
46 stars 13 forks source link

wont delete down hosts #1

Open wojons opened 10 years ago

wojons commented 10 years ago

There is a bug that probably somehow related to CloudFlare API changes. cloudflare-lb.py can't delete dead hosts from the list. If host dies, script just prints "Still Dead".

As far as I understand, get_rec_id function doesn't return an id because condition "if y['display_name'] == name" always false.

"display_name" variable returns a subdomain, and "name" variable returns full url. example:

"name": "direct.example.com", "display_name": "direct",

wojons commented 10 years ago

reported by @bermanboris

McKay1717 commented 9 years ago

I have the same problem

wojons commented 9 years ago

i will work on problem thanks for remebeder

McKay1717 commented 9 years ago

@wojons Thanks for your work ;)

wojons commented 9 years ago

@McKay1717

i am sorry took me so long i have been testing it and seems to go down and up correctly

McKay1717 commented 9 years ago

With a @ record ?

wojons commented 9 years ago

@McKay1717 i will try it with the @ record this time.