cloud66_agent 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cloud66_agent +9 -7
- data/lib/cloud66_agent/utils/version.rb +1 -1
- metadata +1 -1
data/bin/cloud66_agent
CHANGED
@@ -31,13 +31,15 @@ $logger = Logger.new($config.log)
|
|
31
31
|
$logger.level = $config.log_level
|
32
32
|
|
33
33
|
# nothing allowed while disabled
|
34
|
-
if
|
35
|
-
$
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
34
|
+
if command != 'configure'
|
35
|
+
if $config.disabled
|
36
|
+
$logger.error "This agent had been disabled. Please contact Cloud 66 if you think this is in error"
|
37
|
+
exit 86
|
38
|
+
elsif !$config.is_agent_configured?
|
39
|
+
# no other commands allowed while not configured
|
40
|
+
$logger.error "Can only do command \"configure\" (until its been configured!)"
|
41
|
+
exit -1
|
42
|
+
end
|
41
43
|
end
|
42
44
|
|
43
45
|
# handle commands
|