Commit c56ff392 by Csók Tamás

Changes inspired by merge request advices

parent c394e1e1
...@@ -64,7 +64,7 @@ def accept(): ...@@ -64,7 +64,7 @@ def accept():
logger.error("Renewal failed please try it manually at %s" % url) logger.error("Renewal failed please try it manually at %s" % url)
# POST request was sent and received successfully # POST request was sent and received successfully
if done: if done:
wall("Successfull renewal of this vm!") print "Successfull renewal of this vm!"
os.remove("%s/%s" % (get_temp_dir(), file_name)) os.remove("%s/%s" % (get_temp_dir(), file_name))
def notify(url): def notify(url):
......
...@@ -6,4 +6,4 @@ if __name__ == '__main__': ...@@ -6,4 +6,4 @@ if __name__ == '__main__':
try: try:
notify.accept() notify.accept()
except: except:
notify.wall("There was an unknown error while trying to renew this vm, please do it manually!") print "There was an unknown error while trying to renew this vm, please do it manually!"
\ No newline at end of file \ No newline at end of file
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 sign in to comment