pmcf 4.28.10 → 4.28.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.28.10",
3
+ "version": "4.28.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -27,7 +27,6 @@ import { generateKnownHosts } from "./host-utils.mjs";
27
27
  export class Host extends ServiceOwner {
28
28
  static name = "host";
29
29
  static priority = 1.9;
30
- static owners = ["owner", "network", "root"];
31
30
  static attributes = {
32
31
  ...networkAddressAttributes,
33
32
  networkInterfaces: {
@@ -75,7 +74,7 @@ export class Host extends ServiceOwner {
75
74
  replaces: string_set_attribute_writable,
76
75
  depends: string_set_attribute_writable,
77
76
  provides: string_set_attribute_writable,
78
- extends: { ...default_attribute_writable, type: "host", collection: true, owner: false },
77
+ extends: { ...default_attribute_writable, type: Host, collection: true, owner: false },
79
78
  model: string_attribute,
80
79
  isModel: boolean_attribute_false
81
80
  };
package/src/owner.mjs CHANGED
@@ -12,6 +12,7 @@ import { asIterator, union } from "./utils.mjs";
12
12
  import { Base } from "./base.mjs";
13
13
  import { Subnet, SUBNET_GLOBAL_IPV4, SUBNET_GLOBAL_IPV6 } from "./subnet.mjs";
14
14
  import { networks_attribute } from "./network-support.mjs";
15
+ import { Host } from "./host.mjs";
15
16
 
16
17
  const EMPTY = new Map();
17
18
 
@@ -23,7 +24,7 @@ export class Owner extends Base {
23
24
  networks: networks_attribute,
24
25
  hosts: {
25
26
  ...default_attribute_writable,
26
- type: "host",
27
+ type: Host,
27
28
  collection: true
28
29
  },
29
30
  clusters: {
@@ -40,7 +41,10 @@ export class Owner extends Base {
40
41
  domain: string_attribute_writable,
41
42
  domains: string_set_attribute_writable,
42
43
  timezone: string_attribute_writable,
43
- architectures: string_set_attribute_writable,
44
+ architectures: {
45
+ ...string_set_attribute_writable,
46
+ description: "all supported architectures"
47
+ },
44
48
  locales: { ...string_set_attribute_writable, description: "unix locale" },
45
49
  administratorEmail: { ...email_attribute, writable: true },
46
50
  template: { ...boolean_attribute_writable, private: true }