Permalink
Browse files

Allow for '-' in service name ( Issue #12)

  • Loading branch information...
1 parent 23d96f2 commit 6c9cadd253fa39b85ebfc4bd702f9d3146e0beaa Khalid Ahmed committed Mar 28, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/env_manager.rb
View
@@ -128,10 +128,7 @@ def validate(file)
Kernel::load file
ENDPOINT.each_key do |k|
auth = ENDPOINT[k][:oneauth]
- # auth is of the form 'flm01-oneenv1:passwd' and we just want 'oneenv1' to match against OS
- # account we are running under
name = auth.split(":",2).first
- name = name.split("-",2).last
if name != ENV["USER"]
$Logger.error "User attempting to upload invalid config.rb with user name of #{name} instead of #{ENV["USER"]} for this service"
return false

0 comments on commit 6c9cadd

Please sign in to comment.