mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
cli: Make state commands check required version (#30511)
This commit is contained in:
@@ -23,6 +23,11 @@ func (c *StatePullCommand) Run(args []string) int {
|
||||
return 1
|
||||
}
|
||||
|
||||
if diags := c.Meta.checkRequiredVersion(); diags != nil {
|
||||
c.showDiagnostics(diags)
|
||||
return 1
|
||||
}
|
||||
|
||||
// Load the backend
|
||||
b, backendDiags := c.Backend(nil)
|
||||
if backendDiags.HasErrors() {
|
||||
|
||||
Reference in New Issue
Block a user