weizhouapache commented on code in PR #13207:
URL: https://github.com/apache/cloudstack/pull/13207#discussion_r3286725190
##########
scripts/network/ping/prepare_kickstart_kernel_initrd.py:
##########
@@ -61,14 +61,14 @@ def copy_from_nfs(src, dst):
copy_from_nfs(kernel, copy_to)
copy_from_nfs(initrd, copy_to)
- except Exception, e:
- print e
+ except Exception as e:
+ print(e)
return 1
if __name__ == "__main__":
if len(sys.argv) < 4:
- print "Usage: prepare_kickstart_kerneal_initrd.py path_to_kernel
path_to_initrd path_kernel_initrd_copy_to"
- sys.exit(1)
+ print("Usage: prepare_kickstart_kerneal_initrd.py path_to_kernel
path_to_initrd path_kernel_initrd_copy_to")
Review Comment:
😄
##########
scripts/network/ping/prepare_tftp_bootfile.py:
##########
@@ -72,14 +72,14 @@ def prepare(is_restore):
f.write(stuff)
f.close()
return 0
- except Exception, e:
- print e
+ except Exception as e:
+ print(e)
return 1
if __name__ == "__main__":
if len(sys.argv) < 12:
- print "Usage: prepare_tftp_bootfile.py tftp_dir mac cifs_server share
directory image_to_restor cifs_username cifs_password ip netmask gateway"
+ print("Usage: prepare_tftp_bootfile.py tftp_dir mac cifs_server share
directory image_to_restor cifs_username cifs_password ip netmask gateway")
Review Comment:
😆
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]