Skip to content

Added Virtualmachine count and ID's to listSecurityGroups response#679

Closed
borisroman wants to merge 2 commits into
apache:masterfrom
borisroman:CLOUDSTACK-8133
Closed

Added Virtualmachine count and ID's to listSecurityGroups response#679
borisroman wants to merge 2 commits into
apache:masterfrom
borisroman:CLOUDSTACK-8133

Conversation

@borisroman
Copy link
Copy Markdown
Contributor

See issue CLOUDSTACK-8133 for more information.

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 11, 2015

cloudstack-pull-rats #260 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 11, 2015

cloudstack-pull-requests #957 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 11, 2015

cloudstack-pull-analysis #193 SUCCESS
This pull request looks good

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.

Add a check that findById is not returning null. There is a possibility that VM may get deleted after the call to listBySecurityGroup() but before that map entry is processed in the for-loop.

@koushik-das
Copy link
Copy Markdown
Contributor

Please add tests.

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-rats #266 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-requests #963 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-analysis #199 SUCCESS
This pull request looks good

@borisroman
Copy link
Copy Markdown
Contributor Author

@koushik-das Added tests. Please have a look!

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-rats #274 FAILURE
Looks like there's a problem with this pull request

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-rats #275 FAILURE
Looks like there's a problem with this pull request

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-requests #971 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-requests #972 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-analysis #207 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

cloudstack-pull-analysis #208 SUCCESS
This pull request looks good

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.

Could you enclose this if by brackets? { }

@wido
Copy link
Copy Markdown
Contributor

wido commented Aug 13, 2015

LGTM if you fix the brackets in the if-statement

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 13, 2015

cloudstack-pull-rats #283 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 13, 2015

cloudstack-pull-requests #980 ABORTED

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 13, 2015

cloudstack-pull-analysis #216 ABORTED

@remibergsma
Copy link
Copy Markdown
Contributor

@borisroman Could you please squash the commits into 1 (or maybe 2 if you want the tests separate).

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.

@borisroman Please make findById() call only once. Something like

UserVMVO vm = _userVmDao.findById(securityGroupVMMapVO.getInstanceId());
if (vm != null) { sgResponse.addVirtualMachineId(vm.getUuid()); }

@koushik-das
Copy link
Copy Markdown
Contributor

@borisroman I have provided a code comment. Once you fix that and squash the commits as suggested by @remibergsma then its a LGTM from me. Thanks for the unit tests.

Boris Schrijver added 2 commits August 13, 2015 12:47
…oups response.

See issue CLOUDSTACK-8133 for more information.

Added null check by comment of Koushik Das.

Added brackets by comment of Wido den Hollander.

Removed a call to findById() by comment of Koushik Das.
Tests will confirm the behaviour of the newly added response fields of listSecurityGroups.
@borisroman
Copy link
Copy Markdown
Contributor Author

@wido @remibergsma @koushik-das Folowed up on lastest comments by Remi and Koushik.

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 13, 2015

cloudstack-pull-rats #285 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 13, 2015

cloudstack-pull-requests #982 SUCCESS
This pull request looks good

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.

5 participants