Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created July 13, 2011 08:08
Show Gist options
  • Save bodepd/1079915 to your computer and use it in GitHub Desktop.
Save bodepd/1079915 to your computer and use it in GitHub Desktop.
def exists?
begin
nova_manage("network", "list").match(/^#{resource[:network]}\/[0-9]{1,2} /)
rescue Exception
return false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment