Skip to content

Conversation

@akemr
Copy link
Contributor

@akemr akemr commented Dec 19, 2017

Implements issue #1135.

There are 2 new methods in heat.StackService: abandon and adopt. New interface AdoptStackData describes adopt_stack_data element, used as an input for stack adoption and as a return value for stack abandoning.

Basic unit tests are included. The code was tested against real Openstack instance as well.

@vinodborole
Copy link
Contributor

@akemr thanks a lot for having this done so quickly. LGTM. @auhlig what do you think?

Copy link
Member

@auhlig auhlig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides nit, LGTM.


@Override
public String toString() {
return "HeatAdoptStackData{" + "id=" + id + ", name=" + name + ", status=" + status + ", resources=" + resources + '}';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer

public String toString() {
MoreObjects.toStringHelper(this).omitNullValues()
  .add("id", id)
  .add(...)
  .toString();
}

What do you think @akemr?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, no problem. My simple toString was just generated by IDE.
@auhlig Should I do the change in my branch and add the commit to this pull request?

@auhlig auhlig added this to the 3.1.1 Release milestone Jan 22, 2018
@vinodborole vinodborole merged commit eb33ccb into ContainX:master Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants