Commit Graph

2801 Commits

Author SHA1 Message Date
Joshua Boniface 08570bd7b9 Don't click.echo except in main program
Return all the strings we printed directly, so that the caller can print
them normally.
2020-01-05 12:35:00 -05:00
Joshua Boniface 46f3915ab4 Put list handling in the right place 2020-01-05 11:51:03 -05:00
Joshua Boniface 44753c0609 Always handle single-instance results 2020-01-05 02:55:28 -05:00
Joshua Boniface 065ba29c84 Handle retcode from list functions 2020-01-05 02:47:32 -05:00
Joshua Boniface a7a2ace5ae Properly pass reqargs to script put() 2020-01-05 02:42:21 -05:00
Joshua Boniface e0dfda3ff6 Send a useful retcode for failed lists 2020-01-05 02:34:55 -05:00
Joshua Boniface 971b6adb0a Handle removing static and dynamic DHCP leases 2020-01-05 01:06:03 -05:00
Joshua Boniface c032cf3f49 Correct bad variables 2020-01-05 00:55:17 -05:00
Joshua Boniface 4fb0d66f6a Use proper variable name 2020-01-05 00:49:50 -05:00
Joshua Boniface 7311fa561b Fix bad join with new table name 2020-01-04 15:17:27 -05:00
Joshua Boniface bf89050e8b Update userdata table name 2020-01-04 15:10:37 -05:00
Joshua Boniface 94c60f9daa Mention aborting on no cluster 2020-01-04 15:00:24 -05:00
Joshua Boniface 089b3d7a43 Better output of job status 2020-01-04 14:45:40 -05:00
Joshua Boniface aa2bb7c94c Add create and status functions 2020-01-04 14:31:22 -05:00
Joshua Boniface 41766febe6 Fix name of endpoint 2020-01-04 14:21:15 -05:00
Joshua Boniface c34ec68038 Return delete 2020-01-04 14:07:58 -05:00
Joshua Boniface b88bdc29af Add profile handling 2020-01-04 14:06:36 -05:00
Joshua Boniface 0a04c5d748 Handle empty arguments better 2020-01-04 14:05:42 -05:00
Joshua Boniface c2c6198dae Once more occurrance 2020-01-04 14:00:26 -05:00
Joshua Boniface a10ce95be3 Remove a few more instances of userdata_template 2020-01-04 13:58:48 -05:00
Joshua Boniface 8fea073b55 Fix remaining instances of userdata_template 2020-01-04 13:42:16 -05:00
Joshua Boniface a4ad58e64c Add userdata and script options 2020-01-04 13:04:01 -05:00
Joshua Boniface 1c12a4c2f9 Fix bugs around userdata 2020-01-04 12:52:30 -05:00
Joshua Boniface e5d38ec6bd Implement template CLI functions 2020-01-04 11:58:30 -05:00
Joshua Boniface e1c7705c3e Add missing return value 2020-01-04 11:48:13 -05:00
Joshua Boniface 139672d8c9 Fix bug in function argument order 2020-01-04 11:43:35 -05:00
Joshua Boniface 19ea01e17e Don't strip down single-element lists
This is causing problems, so don't do it.
2020-01-04 11:14:55 -05:00
Joshua Boniface e4a83bb063 Use different MAC prefixes for MAC templates 2020-01-04 10:42:04 -05:00
Joshua Boniface a6b6c54422 Use consistent messages and formatting 2020-01-03 13:59:32 -05:00
Joshua Boniface c9b8355ff0 Fix bad handling of Nonetype 2020-01-03 12:07:32 -05:00
Joshua Boniface 816dbac912 Remove explicit flask.jsonify 2020-01-03 12:00:06 -05:00
Joshua Boniface 7ed6308e80 Correct handling of template arguments 2020-01-03 11:55:41 -05:00
Joshua Boniface 9b8dec8991 Add missing reqargs argument 2020-01-03 11:50:13 -05:00
Joshua Boniface f80b432d3b Handle the empty list better 2020-01-02 12:18:41 -05:00
Joshua Boniface 5d92a4aa62 Ensure zk_conn handling is consistent 2020-01-02 12:13:11 -05:00
Joshua Boniface f624cf9e24 Handle no-good-cluster scenarios 2020-01-02 11:19:11 -05:00
Joshua Boniface cb3cc2782a Add initial bits of provisioner CLI 2020-01-02 11:19:08 -05:00
Joshua Boniface e550d4589d Move userdata from templates
This arrangement was driving me somewhat mad; make userdata just like
script in that it is not a "template".
2019-12-30 15:01:28 -05:00
Joshua Boniface d6bd616b31 Fix some bad output 2019-12-30 14:35:44 -05:00
Joshua Boniface 0ced9b2777 Fix incorrect bolding on output 2019-12-30 14:19:17 -05:00
Joshua Boniface 217b163d4b Remove indented empty lines 2019-12-30 13:29:07 -05:00
Joshua Boniface 18e6192178 Add support for multiple clusters in CLI 2019-12-30 13:27:40 -05:00
Joshua Boniface 18c14cbf77 Handle there being no good nodes/VMs 2019-12-30 09:39:04 -05:00
Joshua Boniface a661fec105 Handle boolean config values properly 2019-12-30 09:34:45 -05:00
Joshua Boniface 2325f87389 Correct typo in header 2019-12-30 09:07:41 -05:00
Joshua Boniface 0671a81aa2 Add missing install line for cli_lib 2019-12-29 21:02:05 -05:00
Joshua Boniface 6de65378ca Fix bad metadata documentation 2019-12-29 20:58:02 -05:00
Joshua Boniface 4af95ecfcb Add API doc for cluster status 2019-12-29 20:54:20 -05:00
Joshua Boniface 3b08e887f8 Add cluster status to API 2019-12-29 20:52:05 -05:00
Joshua Boniface d2af6f4508 Complete conversion to API client 2019-12-29 20:33:51 -05:00