bin/cloud66_agent in cloud66_agent-1.0.4 vs bin/cloud66_agent in cloud66_agent-1.0.5
- old
+ new
@@ -29,16 +29,18 @@
$config.log = "/var/log/cloud66_agent.log" if command == 'job_start' && $config.log == STDOUT
$logger = Logger.new($config.log)
$logger.level = $config.log_level
# nothing allowed while disabled
-if $config.disabled
- $logger.error "This agent had been disabled. Please contact Cloud 66 if you think this is in error"
- exit 86
-elsif !$config.is_agent_configured? && command != 'configure'
- # no other commands allowed while not configured
- $logger.error "Can only do command \"configure\" (until its been configured!)"
- exit -1
+if command != 'configure'
+ if $config.disabled
+ $logger.error "This agent had been disabled. Please contact Cloud 66 if you think this is in error"
+ exit 86
+ elsif !$config.is_agent_configured?
+ # no other commands allowed while not configured
+ $logger.error "Can only do command \"configure\" (until its been configured!)"
+ exit -1
+ end
end
# handle commands
$logger.info "Attempting: \"#{command}\""
if command == 'configure'