Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
google_compute_disk.solr-backup: Refreshing state... (ID: solr-backup)
google_compute_http_health_check.default: Refreshing state... (ID: group-http-lb-backend-0)
google_compute_address.prod-win-addr[1]: Refreshing state... (ID: projects/rg-prod/regions/europe-west1/addresses/prod-win-addr-2)
google_compute_address.prod-cron-addr: Refreshing state... (ID: projects/rg-prod/regions/europe-west1/addresses/prod-cron-addr-1)
google_compute_disk.wp-storage: Refreshing state... (ID: wp-storage)
google_compute_address.prod-win-addr[0]: Refreshing state... (ID: projects/rg-prod/regions/europe-west1/addresses/prod-win-addr-1)
Acquiring state lock. This may take a few moments...
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

google_compute_firewall.default-hc: Refreshing state... (ID: group-http-lb-hc-0)
google_compute_global_address.default: Refreshing state... (ID: group-http-lb-address)
google_compute_network.production: Refreshing state... (ID: production-network)
google_compute_disk.solr-data[2]: Refreshing state... (ID: solr-data-3)
google_compute_disk.solr-data[1]: Refreshing state... (ID: solr-data-2)
diff --git a/Changes b/Changes
index b43c42d..0c6a1df 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
Revision history for perl distribution Mojolicious-Plugin-PromiseActions
+0.08 Not Released
+- Only render exception if a reply wasn't already rendered.
+
$ perl test get /
[Sat Oct 20 23:21:07 2018] [debug] GET "/" (4fc6523d)
[Sat Oct 20 23:21:07 2018] [debug] Routing to a callback
here at test line 6.
main::__ANON__(Mojolicious::Controller=HASH(0x7f9ee2031b90)) called at /Users/marcus/.plenv/versions/5.24.0/lib/perl5/site_perl/5.24.0/Mojolicious/Controller.pm line 32
Mojolicious::Controller::AUTOLOAD(Mojolicious::Controller=HASH(0x7f9ee2031b90)) called at test line 13
main::__ANON__(Mojolicious::Controller=HASH(0x7f9ee2031b90)) called at /Users/marcus/.plenv/versions/5.24.0/lib/perl5/site_perl/5.24.0/Mojolicious.pm line 148
Mojolicious::__ANON__(undef, Mojolicious::Controller=HASH(0x7f9ee2031b90), CODE(0x7f9ee370ee58), 1) called at /Users/marcus/.plenv/versions/5.24.0/lib/perl5/site_perl/5.24.0/Mojolicious/Plugins.pm line 15
Mojolicious::Plugins::__ANON__() called at /Users/marcus/.plenv/versions/5.24.0/lib/perl5/site_perl/5.24.0/Mojolicious/Plugins.pm line 18
Mojolicious::Plugins::emit_chain(Mojolicious::Plugins=HASH(0x7f9ee32635f8), "around_action", M
$ cat test
#!/usr/bin/env perl
use Mojolicious::Lite;
use Carp 'cluck';
helper 'test' => sub { cluck 'here' };
# Documentation browser under "/perldoc"
plugin 'PODRenderer';
diff --git a/Changes b/Changes
index 50519bb..279787a 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
Revision history for perl distribution Mojolicious-Plugin-PromiseActions
+0.06 Not Released
+
+- Ensure we actually hold on to the tx
#!/usr/bin/env perl
use Mojolicious::Lite;
# Documentation browser under "/perldoc"
plugin 'PODRenderer';
get '/' => sub {
my $c = shift;
$c->render(template => 'index');
};
#!/usr/bin/env perl
use Mojolicious::Lite;
# Documentation browser under "/perldoc"
plugin 'PODRenderer';
get '/' => async sub {
my $c = shift;
$c->stash(res => await($c->ua->get_p("perlmonks.org"))->res );
$c->render(template => 'index');
#!/usr/bin/env perl
use Mojolicious::Lite;
# Documentation browser under "/perldoc"
plugin 'PODRenderer';
get '/' => sub {
my $c = shift;
$c->stash(listData => 1);
$c->render(template => 'index');
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
google_dns_managed_zone.r12-no: Refreshing state... (ID: r12-no)
google_compute_instance_group.dev-solr-group: Refreshing state... (ID: europe-west1-c/dev-solr-group)
google_dns_record_set.solr-internal[1]: Refreshing state... (ID: r12-no/dev-solr02.r12.no./A)
------------------------------------------------------------------------