{ "sha": "ab20631841be0d49a490010d6e9aae4714c3f111", "node_id": "C_kwDONDjFbNoAKGFiMjA2MzE4NDFiZTBkNDlhNDkwMDEwZDZlOWFhZTQ3MTRjM2YxMTE", "commit": { "author": { "name": "Nicolas Borboën", "email": "ponsfrilus@gmail.com", "date": "2024-12-18T15:04:49Z" }, "committer": { "name": "Dominique Quatravaux", "email": "dominique@quatravaux.org", "date": "2024-12-18T18:16:46Z" }, "message": "[fix] Ensure that plugins default to an empty array", "tree": { "sha": "28bba17b1c7c208e4e2ab027c7845f2686ced91a", "url": "https://api.github.com/repos/epfl-si/wp-operator/git/trees/28bba17b1c7c208e4e2ab027c7845f2686ced91a" }, "url": "https://api.github.com/repos/epfl-si/wp-operator/git/commits/ab20631841be0d49a490010d6e9aae4714c3f111", "comment_count": 0, "verification": { "verified": false, "reason": "unsigned", "signature": null, "payload": null, "verified_at": null } }, "url": "https://api.github.com/repos/epfl-si/wp-operator/commits/ab20631841be0d49a490010d6e9aae4714c3f111", "html_url": "https://github.com/epfl-si/wp-operator/commit/ab20631841be0d49a490010d6e9aae4714c3f111", "comments_url": "https://api.github.com/repos/epfl-si/wp-operator/commits/ab20631841be0d49a490010d6e9aae4714c3f111/comments", "author": { "login": "ponsfrilus", "id": 176002, "node_id": "MDQ6VXNlcjE3NjAwMg==", "avatar_url": "https://avatars.githubusercontent.com/u/176002?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ponsfrilus", "html_url": "https://github.com/ponsfrilus", "followers_url": "https://api.github.com/users/ponsfrilus/followers", "following_url": "https://api.github.com/users/ponsfrilus/following{/other_user}", "gists_url": "https://api.github.com/users/ponsfrilus/gists{/gist_id}", "starred_url": "https://api.github.com/users/ponsfrilus/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ponsfrilus/subscriptions", "organizations_url": "https://api.github.com/users/ponsfrilus/orgs", "repos_url": "https://api.github.com/users/ponsfrilus/repos", "events_url": "https://api.github.com/users/ponsfrilus/events{/privacy}", "received_events_url": "https://api.github.com/users/ponsfrilus/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "committer": { "login": "domq", "id": 1629585, "node_id": "MDQ6VXNlcjE2Mjk1ODU=", "avatar_url": "https://avatars.githubusercontent.com/u/1629585?v=4", "gravatar_id": "", "url": "https://api.github.com/users/domq", "html_url": "https://github.com/domq", "followers_url": "https://api.github.com/users/domq/followers", "following_url": "https://api.github.com/users/domq/following{/other_user}", "gists_url": "https://api.github.com/users/domq/gists{/gist_id}", "starred_url": "https://api.github.com/users/domq/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/domq/subscriptions", "organizations_url": "https://api.github.com/users/domq/orgs", "repos_url": "https://api.github.com/users/domq/repos", "events_url": "https://api.github.com/users/domq/events{/privacy}", "received_events_url": "https://api.github.com/users/domq/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "parents": [ { "sha": "db0dfeefd0e0eca94be7b42a959de029d7d7eac1", "url": "https://api.github.com/repos/epfl-si/wp-operator/commits/db0dfeefd0e0eca94be7b42a959de029d7d7eac1", "html_url": "https://github.com/epfl-si/wp-operator/commit/db0dfeefd0e0eca94be7b42a959de029d7d7eac1" } ], "stats": { "total": 3, "additions": 2, "deletions": 1 }, "files": [ { "sha": "eb6725748d328bee82f2fd89af1db164cb97d822", "filename": "WordPressSite-crd.yaml", "status": "modified", "additions": 1, "deletions": 0, "changes": 1, "blob_url": "https://github.com/epfl-si/wp-operator/blob/ab20631841be0d49a490010d6e9aae4714c3f111/WordPressSite-crd.yaml", "raw_url": "https://github.com/epfl-si/wp-operator/raw/ab20631841be0d49a490010d6e9aae4714c3f111/WordPressSite-crd.yaml", "contents_url": "https://api.github.com/repos/epfl-si/wp-operator/contents/WordPressSite-crd.yaml?ref=ab20631841be0d49a490010d6e9aae4714c3f111", "patch": "@@ -88,6 +88,7 @@ spec:\n items:\n type: string\n pattern: ^[\\w -_.]{3,}$\n+ default: []\n debug:\n description: Whether or not activate the WP_DEBUG\n type: boolean" }, { "sha": "d4b830d615ccbc1fbd037cda3d5f8a4134fb1ca5", "filename": "wp-operator.py", "status": "modified", "additions": 1, "deletions": 1, "changes": 2, "blob_url": "https://github.com/epfl-si/wp-operator/blob/ab20631841be0d49a490010d6e9aae4714c3f111/wp-operator.py", "raw_url": "https://github.com/epfl-si/wp-operator/raw/ab20631841be0d49a490010d6e9aae4714c3f111/wp-operator.py", "contents_url": "https://api.github.com/repos/epfl-si/wp-operator/contents/wp-operator.py?ref=ab20631841be0d49a490010d6e9aae4714c3f111", "patch": "@@ -598,7 +598,7 @@ def create_site(self, spec):\n import_object = spec.get(\"epfl\", {}).get(\"import\")\n title = wordpress[\"title\"]\n tagline = wordpress[\"tagline\"]\n- plugins = wordpress[\"plugins\"]\n+ plugins = wordpress.get(\"plugins\", [])\n languages = wordpress[\"languages\"]\n \n self.create_database()" } ] }