Martin Atkins
fee1197cf9
command: terraform state rm to require at least one argument
...
Due to how the state filter machinery works, passing no arguments is valid
and matches _all_ resources.
It is very unlikely that someone wants to remove everything from state, so
this ends up being a very dangerous default for the "terraform state rm"
command, and surprising for someone who perhaps runs it looking for the
usage information.
So we'll be pragmatic here and reject the no-arguments case for this
command, accepting that it makes the unlikely case of intentionally
deleting all resources harder in order to make it less likely that it
will happen _unintentionally_.
If someone does really want to remove all resources from the state, they
can provide an explicit empty string argument, but this isn't documented
because it's a weird case that doesn't seem worth mentioning.
This fixes #15283 .
2017-07-05 16:19:32 -07:00
..
2017-04-01 17:09:20 -04:00
2017-06-22 07:03:23 -07:00
2017-07-05 17:32:29 +01:00
2017-02-15 14:41:55 -05:00
2017-06-09 14:03:59 -07:00
2017-06-12 09:06:32 -04:00
2017-06-27 11:22:31 -07:00
2014-07-12 20:59:16 -07:00
2015-04-29 13:07:13 -05:00
2017-06-09 14:03:59 -07:00
2017-06-16 14:09:47 -04:00
2016-11-14 00:32:01 -08:00
2016-11-14 00:32:01 -08:00
2017-06-09 14:03:59 -07:00
2017-06-09 14:03:59 -07:00
2016-11-21 11:59:20 -05:00
2017-06-09 14:03:59 -07:00
2016-11-21 11:59:20 -05:00
2016-12-10 14:30:40 -05:00
2016-12-10 14:30:40 -05:00
2017-06-09 14:03:59 -07:00
2016-04-29 00:39:53 +01:00
2017-06-09 14:03:59 -07:00
2017-01-26 14:33:49 -08:00
2017-06-09 14:03:59 -07:00
2017-06-09 14:03:59 -07:00
2017-02-24 18:32:59 -05:00
2017-02-24 18:32:59 -05:00
2017-04-04 15:41:54 +01:00
2017-04-28 21:59:56 -04:00
2017-06-27 11:07:45 -04:00
2017-06-26 18:28:45 -04:00
2017-06-21 11:43:28 -07:00
2017-07-03 13:59:13 -04:00
2017-06-12 13:43:54 -04:00
2017-06-12 13:43:54 -04:00
2016-05-10 14:49:13 -04:00
2017-06-09 16:26:25 -07:00
2017-06-09 16:26:25 -07:00
2017-06-27 11:22:26 -07:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-07-03 13:59:13 -04:00
2015-10-15 13:48:58 -07:00
2015-10-15 13:48:58 -07:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-06-09 14:03:59 -07:00
2017-06-15 14:26:12 -04:00
2017-06-09 14:03:59 -07:00
2017-06-09 14:03:59 -07:00
2017-06-15 15:23:16 -04:00
2017-06-22 15:31:36 -04:00
2017-06-10 12:02:01 +01:00
2017-06-10 11:51:06 +01:00
2017-06-19 12:08:42 -04:00
2017-06-09 15:01:39 -07:00
2017-06-09 14:03:59 -07:00
2017-06-15 14:26:12 -04:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-02-28 16:35:46 -05:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-06-23 14:41:49 -04:00
2017-06-23 14:41:49 -04:00
2017-06-23 14:46:09 -04:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-07-05 16:19:32 -07:00
2017-07-05 16:19:32 -07:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-02-07 09:11:48 -08:00
2017-02-15 14:44:43 -05:00
2017-06-09 16:26:25 -07:00
2016-08-22 12:59:48 -07:00
2017-03-01 10:59:17 -08:00
2017-06-09 14:03:59 -07:00
2017-06-09 16:26:25 -07:00
2017-02-15 14:44:43 -05:00
2017-06-09 16:26:25 -07:00
2017-07-05 17:32:29 +01:00
2017-07-05 17:32:29 +01:00
2014-05-24 12:04:43 -07:00
2015-02-07 16:56:56 +01:00
2017-07-05 14:35:46 -07:00
2017-07-05 14:35:46 -07:00
2017-06-27 14:31:08 -04:00
2017-06-09 16:26:25 -07:00
2017-06-09 16:26:25 -07:00
2017-06-09 16:26:25 -07:00
2017-07-05 14:35:46 -07:00