Open kcd83 opened 10 years ago
Avoid NoMethodError: undefined method `sub' for nil:NilClass when no aws_reason is supplied by openstack implementation of ec2
Might prefer
instance[:aws_reason].nil? ? nil : instance[:aws_reason].sub(/\(\d[^)]*GMT\) */, '')
Avoid NoMethodError: undefined method `sub' for nil:NilClass when no aws_reason is supplied by openstack implementation of ec2