Skip to content

remove PortableTemplateBuilder#926

Open
andreaturli wants to merge 2 commits into
apache:masterfrom
andreaturli:fix/portableTemplate
Open

remove PortableTemplateBuilder#926
andreaturli wants to merge 2 commits into
apache:masterfrom
andreaturli:fix/portableTemplate

Conversation

@andreaturli

Copy link
Copy Markdown
Contributor

based on #807

- adjust MachinePoolPredicates to use Template from jclouds

@rdowner rdowner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @andreaturli - thanks for this. In addition to the specific comments, I have a couple of general ones.

Firstly it looks like some of the tests still needs updates to work with the new jclouds stub provider. Picking one test failure at random, I saw expected [2.1.1.2] but found [144.175.1.21].

Secondly there's quite a few whitespace changes mixed in with "real" changes. It would be helpful if whitespace changes could be moved into a separate commit to ease reviewing. (But this is not a blocker to merging this PR.)

Thanks
Richard.

!template.getOsFamily().equals(m.getOperatingSystem().getFamily())) return false;
!template.getImage().getOperatingSystem().getFamily().equals(m.getOperatingSystem().getFamily())) return false;
}
if (template.getOsNameMatchesRegex()!=null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This deleted line does not have an equivalent in the new version. Does this mean a potential a change in behaviour?

HostAndPort hostAndPort, Iterable<LoginCredentials> credentialsToTry, ConfigBag setup) {
String waitForSshable = setup.get(WAIT_FOR_SSHABLE);
checkArgument(!"false".equalsIgnoreCase(waitForSshable), "waitForSshable called despite waitForSshable=%s for %s", waitForSshable, hostAndPort);
// checkArgument(!"false".equalsIgnoreCase(waitForSshable), "waitForSshable called despite waitForSshable=%s for %s", waitForSshable, hostAndPort);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please avoid committing commented-out lines of code. Is this line supposed to be deleted, or was it commented out to help debugging?

}

@Test
@Test(enabled = false)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason for disabling this test? If so, please add a comment.

@andreaturli andreaturli changed the title [WIP] remove PortableTemplateBuilder remove PortableTemplateBuilder Feb 3, 2018
@tbouron

tbouron commented Jul 24, 2018

Copy link
Copy Markdown
Member

retest this please

1 similar comment
@nakomis

nakomis commented Nov 26, 2019

Copy link
Copy Markdown
Contributor

retest this please

@nakomis

nakomis commented Nov 26, 2019

Copy link
Copy Markdown
Contributor

@andreaturli @richardcloudsoft Can you take a look at this please to see if it is still relevant, and address the comments above if appropriate

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants