Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
fd4dd284
Commit
fd4dd284
authored
Apr 21, 2014
by
Ross Smith II
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1018 from priteau/openstack-state-fix
Properly return error when invalid instance state is found
parents
57c3b8d9
77dedd9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
builder/openstack/server.go
builder/openstack/server.go
+1
-2
No files found.
builder/openstack/server.go
View file @
fd4dd284
...
@@ -75,8 +75,7 @@ func WaitForState(conf *StateChangeConf) (i interface{}, err error) {
...
@@ -75,8 +75,7 @@ func WaitForState(conf *StateChangeConf) (i interface{}, err error) {
}
}
if
!
found
{
if
!
found
{
fmt
.
Errorf
(
"unexpected state '%s', wanted target '%s'"
,
currentState
,
conf
.
Target
)
return
nil
,
fmt
.
Errorf
(
"unexpected state '%s', wanted target '%s'"
,
currentState
,
conf
.
Target
)
return
}
}
log
.
Printf
(
"Waiting for state to become: %s currently %s (%d%%)"
,
conf
.
Target
,
currentState
,
currentProgress
)
log
.
Printf
(
"Waiting for state to become: %s currently %s (%d%%)"
,
conf
.
Target
,
currentState
,
currentProgress
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment