Explorar el Código

Fix an issue porting to Python 3.

Joe Clarke hace 4 años
padre
commit
60992157a8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      automation/services/clean_reservation.py

+ 1 - 1
automation/services/clean_reservation.py

@@ -43,7 +43,7 @@ HEADERS = {"authorization": CLEUCreds.JCLARKE_BASIC, "accept": "application/json
 
 if __name__ == "__main__":
     url = DHCP_BASE
-    ans = eval(input("Are you sure you want to clean reservations (y/N): "))
+    ans = input("Are you sure you want to clean reservations (y/N): ")
     if not re.search(r"^[yY]", ans):
         print("Exiting...")
         sys.exit(0)