Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

bz 1073725 #5813

Merged
merged 4 commits into from Nov 6, 2014
Merged

bz 1073725 #5813

merged 4 commits into from Nov 6, 2014

Conversation

sztsian
Copy link
Contributor

@sztsian sztsian commented Sep 15, 2014

https://bugzilla.redhat.com/show_bug.cgi?id=1073725

Test if the env exists before reporting exceeded USER_VARIABLE_MAX_COUNT. If all the env exists, just update them, otherwise report the error

https://bugzilla.redhat.com/show_bug.cgi?id=1073725
Test if the env exists before reporting exceeded USER_VARIABLE_MAX_COUNT. If all the env exists, just update them, otherwise report the error
@@ -275,7 +275,10 @@ def user_var_add(variables, gears = [])
FileUtils.mkpath(directory) unless File.directory?(directory)

if (Dir.entries(directory).size - 2 + variables.size) > USER_VARIABLE_MAX_COUNT
return 255, "CLIENT_ERROR: User Variables maximum of #{USER_VARIABLE_MAX_COUNT} exceeded\n"
variables.each_pair do |name,value|
Copy link
Member

Choose a reason for hiding this comment

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

You can drop value here, use _

@sztsian
Copy link
Contributor Author

sztsian commented Sep 18, 2014

A little busy these days. I will modify later.

@sztsian
Copy link
Contributor Author

sztsian commented Oct 30, 2014

@jwhonce Submitted unit test.

@jwhonce
Copy link
Contributor

jwhonce commented Nov 3, 2014

[test][extended:node,cartridge]

@openshift-bot
Copy link

@openshift-bot
Copy link

Origin Test Results: FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests/3050/)

@openshift-bot
Copy link

Evaluated for origin up to 4961cb3

@jwhonce
Copy link
Contributor

jwhonce commented Nov 6, 2014

[merge]

@openshift-bot
Copy link

@jwhonce
Copy link
Contributor

jwhonce commented Nov 6, 2014

[merge]again failure in unrelated code

@openshift-bot
Copy link

Evaluated for online up to 4961cb3

openshift-bot pushed a commit that referenced this pull request Nov 6, 2014
@openshift-bot openshift-bot merged commit aa5319e into openshift:master Nov 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants