Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mvollman
Copy link
Contributor

@mvollman mvollman commented Oct 27, 2017

The strContainsClient function is splitting characters instead of words and not correctly determining if a user has been defined.

I mistakenly closed the original merge request #1083 while rebasing.

return nil, exitStatus, goof.Newe(err)
}

// Search str arg for flags that can set a Ceph client id/name

Choose a reason for hiding this comment

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

comment on exported function StrContainsClient should be of the form "StrContainsClient ..."

@mvollman mvollman force-pushed the bugfix/cephargs branch 2 times, most recently from b3e1d2d to b5ca10d Compare October 27, 2017 18:58
@akutz
Copy link
Member

akutz commented Oct 27, 2017

Hi @mvollman,

Unless the commits need to remain separate, do you mind please squashing them? Thanks!

@akutz akutz changed the title Bugfix/cephargs ceph: Fix how ceph CLI args are parsed Oct 27, 2017
@akutz akutz self-assigned this Oct 27, 2017
@akutz akutz requested a review from codenrhoden October 27, 2017 19:16
@codecov-io
Copy link

codecov-io commented Oct 27, 2017

Codecov Report

Merging #1098 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1098      +/-   ##
==========================================
- Coverage   34.19%   34.16%   -0.04%     
==========================================
  Files          36       36              
  Lines        2901     2901              
==========================================
- Hits          992      991       -1     
- Misses       1806     1807       +1     
  Partials      103      103
Impacted Files Coverage Δ
libstorage/api/types/types_localdevices.go 84.93% <0%> (-1.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9d10b9...37ffdbf. Read the comment docs.

Copy link
Member

@codenrhoden codenrhoden left a comment

Choose a reason for hiding this comment

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

Thanks for squashing this down to 1 commit, I was just about to ask for the same thing.

This looks good -- just the one request on the test input.

},
{
args: "--cluster cluster2",
present: true,
Copy link
Member

Choose a reason for hiding this comment

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

This should be present: false. There is only a cluster flag in here, and therefore no client is detected. This should actually fail if you run the tests, e.g. :
go test -v github.com/thecodeteam/rexray/libstorage/drivers/storage/rbd/utils

Do you not see the tests fail?

I also had a 6th variation in the sample I pasted:

		{
			args:    "--cluster cluster2 --id ceph",
			present: true,
		},

That was just to make sure we catch a mixed example.

@codenrhoden codenrhoden added this to the 2017.11-1 milestone Oct 27, 2017
The strContainsClient function is spliting characters instead of words
and not correctly determining if a user has been defined.  Moving
strContainsClient to utils and adding tests.
@mvollman
Copy link
Contributor Author

@codenrhoden What is the one outstanding request?

@codenrhoden
Copy link
Member

@mvollman Nothing! You took care of it in your most recent commit. Thank you!

@codenrhoden codenrhoden merged commit eaaa7b5 into rexray:master Oct 27, 2017
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.

5 participants