Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
CORE
Perl v5.30.0 (5.16)
Convos 3.08 (3.00)
Crypt::Eksblowfish 0.009 (0.009)
File::HomeDir 1.004 (1.00)
File::ReadBackwards 1.05 (1.05)
IO::Socket::SSL 2.066 (2.009)
IRC::Utils 0.12 (0.12)
JSON::Validator 3.16 (3.16)
This file has been truncated, but you can view the full file.
$ prove -l
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
Can't call method "path" on an undefined value at /Users/marcus/Source/convos/lib/Convos/Plugin/Helpers.pm line 33.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 1.
t/config.t .......................
Dubious, test returned 2 (wstat 512, 0x200)
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
t/config.t .......................
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
t/connection.t ................... ok
t/connection_name.t .............. ok
t/irc-basic.t .................... ok
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..c6b983e6e 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context')
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..db04ef688 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context'
2019-08-11 20:54:02 ERROR (MainThread) [hass_nabucasa.iot] Error handling message
Traceback (most recent call last):
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 220, in _handle_connection
self.cloud, msg["handler"], msg["payload"]
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 274, in async_handle_message
return await handler(cloud, payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 286, in async_handle_google_actions
return await cloud.client.async_google_message(payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/client.py", line 147, in async_google_message
self._hass, self.google_config, self.prefs.cloud_user, payload
diff --git a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2 b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
index 75e054be..cd66b934 100644
--- a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
+++ b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
@@ -226,7 +226,7 @@ sub vcl_recv {
if (req.url ~ "^/(club|klubb|klub|artikler|artiklar|kampanje|kampanj|kampagne|kampania)"
|| req.url ~ "^/(asset|cdn|component|layouts|services)/"
|| req.url ~ "^/(afbudsrejser|sistaminuten)(/|\.json|)(\?.+)?$"
- || req.url ~ "^/(charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
+ || req.url ~ "^/($|charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
def namespace(arg)
end
def help()
end
def there()
end
def is()
end
def no()
diff --git a/README.md b/README.md
index 060403106..93f2966d2 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,14 @@
high quality spin-off projects like the
[Minion](https://metacpan.org/pod/Minion) job queue.
+## Benefits
+
Error: Unsupported argument
on .terraform/modules/gce-lb-http/main.tf line 79, in resource "google_compute_backend_service" "default":
79: backend = [ var.backends[count.index] ]
An argument named "backend" is not expected here. Did you mean to define a
block of type "backend"?