mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
cli: create or read state file during constellation create
(#2470)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
1a141c3972
commit
fe7e16e1cc
4 changed files with 128 additions and 88 deletions
|
@ -191,7 +191,7 @@ func (c *createCmd) create(cmd *cobra.Command, creator cloudCreator, fileHandler
|
|||
}
|
||||
c.log.Debugf("Successfully created the cloud resources for the cluster")
|
||||
|
||||
stateFile, err := state.ReadFromFile(fileHandler, constants.StateFilename)
|
||||
stateFile, err := state.CreateOrRead(fileHandler, constants.StateFilename)
|
||||
if err != nil {
|
||||
return fmt.Errorf("reading state file: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue