lib/swa/ec2/instance.rb in swa-0.4.1 vs lib/swa/ec2/instance.rb in swa-0.4.2
- old
+ new
@@ -24,10 +24,11 @@
def name
tags["Name"]
end
def console_output
- Base64.decode64(i.console_output.output)
+ encoded_output = i.console_output.output
+ Base64.decode64(encoded_output) if encoded_output
end
delegate :launch_time
delegate :stop, :start, :reboot, :terminate