foreman_snapshot_management 2.0.3 → 3.0.0
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.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/Rakefile +1 -1
- data/app/assets/javascripts/foreman_snapshot_management/locale/cs_CZ/foreman_snapshot_management.js +203 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/de/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/el/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/en/foreman_snapshot_management.js +198 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/fr/foreman_snapshot_management.js +203 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/ja/foreman_snapshot_management.js +199 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/ka/foreman_snapshot_management.js +201 -0
- data/app/assets/javascripts/foreman_snapshot_management/locale/zh_CN/foreman_snapshot_management.js +199 -0
- data/app/controllers/api/v2/snapshots_controller.rb +5 -4
- data/app/controllers/foreman_snapshot_management/snapshots_controller.rb +6 -4
- data/app/helpers/foreman_snapshot_management/hosts_helper.rb +16 -0
- data/app/models/concerns/fog_extensions/proxmox/snapshots/mock.rb +1 -1
- data/app/models/concerns/fog_extensions/vsphere/snapshots/mock.rb +2 -2
- data/app/models/concerns/fog_extensions/vsphere/snapshots/real.rb +1 -1
- data/app/models/foreman_snapshot_management/proxmox_extensions.rb +2 -1
- data/app/models/foreman_snapshot_management/snapshot.rb +11 -10
- data/config/routes.rb +1 -1
- data/lib/foreman_snapshot_management/engine.rb +24 -29
- data/lib/foreman_snapshot_management/version.rb +1 -1
- data/lib/tasks/foreman_snapshot_management_tasks.rake +1 -1
- data/locale/Makefile +7 -8
- data/locale/cs_CZ/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/cs_CZ/foreman_snapshot_management.po +12 -4
- data/locale/de/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/de/foreman_snapshot_management.po +12 -4
- data/locale/el/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/el/foreman_snapshot_management.po +12 -4
- data/locale/fr/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/fr/foreman_snapshot_management.po +12 -4
- data/locale/ja/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ja/foreman_snapshot_management.po +12 -4
- data/locale/ka/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/ka/foreman_snapshot_management.po +12 -4
- data/locale/zh_CN/LC_MESSAGES/foreman_snapshot_management.mo +0 -0
- data/locale/zh_CN/foreman_snapshot_management.po +12 -4
- data/package.json +1 -1
- data/test/controllers/api/v2/snapshots_test.rb +1 -1
- data/test/controllers/foreman_snapshot_management/snapshots_controller_test.rb +1 -1
- data/webpack/components/SnapshotManagementCard/SnapshotManagementCard.js +12 -9
- data/webpack/components/SnapshotManagementCard/__tests__/SnapshotManagementCard.test.js +1 -0
- data/webpack/components/SnapshotManagementCard/__tests__/__snapshots__/SnapshotManagementCard.test.js.snap +1 -16
- metadata +16 -8
- data/app/helpers/concerns/foreman_snapshot_management/hosts_helper_extension.rb +0 -9
@@ -6,11 +6,11 @@ module ForemanSnapshotManagement
|
|
6
6
|
|
7
7
|
config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
|
8
8
|
config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
|
9
|
-
config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
|
10
9
|
|
11
10
|
initializer 'foreman_snapshot_management.register_plugin', before: :finisher_hook do |_app|
|
12
11
|
Foreman::Plugin.register :foreman_snapshot_management do
|
13
|
-
requires_foreman '>=
|
12
|
+
requires_foreman '>= 3.7'
|
13
|
+
register_gettext
|
14
14
|
|
15
15
|
# Add Global files for extending foreman-core components and routes
|
16
16
|
register_global_js_file 'global'
|
@@ -21,49 +21,53 @@ module ForemanSnapshotManagement
|
|
21
21
|
security_block :foreman_snapshot_management do
|
22
22
|
permission :view_snapshots, {
|
23
23
|
:'foreman_snapshot_management/snapshots' => [:index],
|
24
|
-
:'api/v2/snapshots' => [:index, :show]
|
24
|
+
:'api/v2/snapshots' => [:index, :show],
|
25
25
|
}, :resource_type => 'Host'
|
26
26
|
|
27
27
|
permission :create_snapshots, {
|
28
28
|
:'foreman_snapshot_management/snapshots' => [:create, :select_multiple_host, :create_multiple_host],
|
29
|
-
:'api/v2/snapshots' => [:create]
|
29
|
+
:'api/v2/snapshots' => [:create],
|
30
30
|
}, :resource_type => 'Host'
|
31
31
|
|
32
32
|
permission :edit_snapshots, {
|
33
33
|
:'foreman_snapshot_management/snapshots' => [:update],
|
34
|
-
:'api/v2/snapshots' => [:update]
|
34
|
+
:'api/v2/snapshots' => [:update],
|
35
35
|
}, :resource_type => 'Host'
|
36
36
|
|
37
37
|
permission :destroy_snapshots, {
|
38
38
|
:'foreman_snapshot_management/snapshots' => [:destroy],
|
39
|
-
:'api/v2/snapshots' => [:destroy]
|
39
|
+
:'api/v2/snapshots' => [:destroy],
|
40
40
|
}, :resource_type => 'Host'
|
41
41
|
|
42
42
|
permission :revert_snapshots, {
|
43
43
|
:'foreman_snapshot_management/snapshots' => [:revert],
|
44
|
-
:'api/v2/snapshots' => [:revert]
|
44
|
+
:'api/v2/snapshots' => [:revert],
|
45
45
|
}, :resource_type => 'Host'
|
46
46
|
end
|
47
47
|
|
48
48
|
# Adds roles if they do not exist
|
49
49
|
role 'Snapshot Viewer',
|
50
|
-
|
51
|
-
|
50
|
+
[:view_snapshots],
|
51
|
+
'Role granting permission only to view snapshots for hosts'
|
52
52
|
role 'Snapshot Manager',
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
53
|
+
[
|
54
|
+
:view_snapshots,
|
55
|
+
:create_snapshots,
|
56
|
+
:edit_snapshots,
|
57
|
+
:destroy_snapshots,
|
58
|
+
:revert_snapshots,
|
59
|
+
],
|
60
|
+
'Role granting permission to manage snapshots for hosts'
|
61
61
|
|
62
62
|
extend_page('hosts/show') do |context|
|
63
63
|
context.add_pagelet :main_tabs,
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
:name => N_('Snapshots'),
|
65
|
+
:partial => 'hosts/snapshots_tab',
|
66
|
+
:onlyif => proc { |host| host&.uuid.present? && host&.compute_resource&.capable?(:snapshots) }
|
67
|
+
end
|
68
|
+
|
69
|
+
describe_host do
|
70
|
+
multiple_actions_provider :snapshot_multiple_actions
|
67
71
|
end
|
68
72
|
end
|
69
73
|
end
|
@@ -86,9 +90,6 @@ module ForemanSnapshotManagement
|
|
86
90
|
|
87
91
|
# Include concerns in this config.to_prepare block
|
88
92
|
config.to_prepare do
|
89
|
-
# Load Foreman extensions
|
90
|
-
::HostsHelper.prepend ForemanSnapshotManagement::HostsHelperExtension
|
91
|
-
|
92
93
|
begin
|
93
94
|
::ForemanFogProxmox::Proxmox.prepend ForemanSnapshotManagement::ProxmoxExtensions
|
94
95
|
|
@@ -118,12 +119,6 @@ module ForemanSnapshotManagement
|
|
118
119
|
ForemanSnapshotManagement::Engine.load_seed
|
119
120
|
end
|
120
121
|
end
|
121
|
-
|
122
|
-
initializer 'foreman_snapshot_management.register_gettext', after: :load_config_initializers do |_app|
|
123
|
-
locale_dir = File.join(File.expand_path('../..', __dir__), 'locale')
|
124
|
-
locale_domain = 'foreman_snapshot_management'
|
125
|
-
Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
|
126
|
-
end
|
127
122
|
end
|
128
123
|
|
129
124
|
def self.fog_vsphere_namespace
|
data/locale/Makefile
CHANGED
@@ -14,6 +14,7 @@ POFILES = $(shell find . -name '$(DOMAIN).po')
|
|
14
14
|
MOFILES = $(patsubst %.po,%.mo,$(POFILES))
|
15
15
|
POXFILES = $(patsubst %.po,%.pox,$(POFILES))
|
16
16
|
EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
|
17
|
+
JSFILES = $(shell find ../app/assets/javascripts/*/locale -name '$(DOMAIN).js')
|
17
18
|
|
18
19
|
%.mo: %.po
|
19
20
|
mkdir -p $(shell dirname $@)/LC_MESSAGES
|
@@ -41,23 +42,21 @@ uniq-po:
|
|
41
42
|
msguniq $$f -o $$f ; \
|
42
43
|
done
|
43
44
|
|
44
|
-
tx-
|
45
|
-
tx pull
|
46
|
-
|
47
|
-
tx-pull: tx-new $(EDITFILES)
|
48
|
-
tx pull -f
|
45
|
+
tx-pull: $(EDITFILES)
|
46
|
+
cd .. && tx pull -f --all
|
49
47
|
for f in $(EDITFILES) ; do \
|
50
48
|
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
51
49
|
done
|
52
50
|
|
53
51
|
tx-update: tx-pull
|
54
52
|
@echo
|
55
|
-
@echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation
|
53
|
+
@echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation
|
54
|
+
@echo then run rake plugin:po_to_json[$(DOMAIN)] from the Foreman installation
|
55
|
+
@echo then run make -C locale mo-files to finish
|
56
56
|
@echo
|
57
57
|
|
58
58
|
mo-files: $(MOFILES)
|
59
|
-
git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
|
60
|
-
[[ ! -f locale/action_names.rb ]] || git add locale/action_names.rb
|
59
|
+
git add $(POFILES) $(POTFILE) $(JSFILES) ../locale/*/LC_MESSAGES
|
61
60
|
git commit -m "i18n - pulling from tx"
|
62
61
|
@echo
|
63
62
|
@echo Changes commited!
|
Binary file
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# Lukáš Zapletal, 2021
|
8
8
|
# Pavel Borecki <pavel.borecki@gmail.com>, 2021
|
9
9
|
#
|
10
|
-
#, fuzzy
|
11
10
|
msgid ""
|
12
11
|
msgstr ""
|
13
12
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -77,15 +76,15 @@ msgstr "Zachycený stav se nepodařilo aktualizovat: %s"
|
|
77
76
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
78
77
|
msgstr "Zásuvný modul do Foreman pro správu zachycených stavů v prostředí virtuálního hardware."
|
79
78
|
|
80
|
-
msgid "Include RAM"
|
81
|
-
msgstr "Včetně oper. paměti"
|
82
|
-
|
83
79
|
msgid "List all snapshots"
|
84
80
|
msgstr "Vypsat všechny zachycené stavy"
|
85
81
|
|
86
82
|
msgid "Loading Snapshots information ..."
|
87
83
|
msgstr "Načítání informací o zachycených stavech…"
|
88
84
|
|
85
|
+
msgid "Memory"
|
86
|
+
msgstr ""
|
87
|
+
|
89
88
|
msgid "N/A"
|
90
89
|
msgstr "Není"
|
91
90
|
|
@@ -107,6 +106,9 @@ msgstr ""
|
|
107
106
|
msgid "No hosts were found with that id, name or query filter"
|
108
107
|
msgstr "Pro takový identifikátor, název nebo dotazovací filtr nebyly nalezeni žádní hostitelé"
|
109
108
|
|
109
|
+
msgid "Quiesce"
|
110
|
+
msgstr ""
|
111
|
+
|
110
112
|
msgid "Revert Host to a snapshot"
|
111
113
|
msgstr "Vrátit stroj do podoby ze zachyceného stavu"
|
112
114
|
|
@@ -116,6 +118,9 @@ msgstr ""
|
|
116
118
|
msgid "Rollback to \"%s\"?"
|
117
119
|
msgstr ""
|
118
120
|
|
121
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
122
|
+
msgstr ""
|
123
|
+
|
119
124
|
msgid "Snapshot"
|
120
125
|
msgid_plural "Snapshots"
|
121
126
|
msgstr[0] "Zachycený stav"
|
@@ -123,6 +128,9 @@ msgstr[1] "Zachycené stavy"
|
|
123
128
|
msgstr[2] "Zachycených stavů"
|
124
129
|
msgstr[3] "Zachycené stavy"
|
125
130
|
|
131
|
+
msgid "Snapshot Mode"
|
132
|
+
msgstr ""
|
133
|
+
|
126
134
|
msgid "Snapshot name cannot be changed"
|
127
135
|
msgstr "Název zachyceného stavu není možné změnit"
|
128
136
|
|
Binary file
|
@@ -11,7 +11,6 @@
|
|
11
11
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
12
12
|
# Markus Bucher <bucher@atix.de>, 2021
|
13
13
|
#
|
14
|
-
#, fuzzy
|
15
14
|
msgid ""
|
16
15
|
msgstr ""
|
17
16
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -79,15 +78,15 @@ msgstr "Das Aktualisieren des Snapshots ist fehlgeschlagen: %s"
|
|
79
78
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
80
79
|
msgstr "Ein Foremanplugin, welches Snapshots in Umgebungen mit virtueller Hardware nutzbar macht."
|
81
80
|
|
82
|
-
msgid "Include RAM"
|
83
|
-
msgstr "RAM einbeziehen"
|
84
|
-
|
85
81
|
msgid "List all snapshots"
|
86
82
|
msgstr "Alle Snapshots auflisten"
|
87
83
|
|
88
84
|
msgid "Loading Snapshots information ..."
|
89
85
|
msgstr "Lade Snapshot Informationen ..."
|
90
86
|
|
87
|
+
msgid "Memory"
|
88
|
+
msgstr ""
|
89
|
+
|
91
90
|
msgid "N/A"
|
92
91
|
msgstr "N/A"
|
93
92
|
|
@@ -109,6 +108,9 @@ msgstr "Keine unterstützten Hosts ausgewählt"
|
|
109
108
|
msgid "No hosts were found with that id, name or query filter"
|
110
109
|
msgstr "Keine Hosts wurden mit dieser Kennung, Name oder Abfrage-Filter gefunden"
|
111
110
|
|
111
|
+
msgid "Quiesce"
|
112
|
+
msgstr ""
|
113
|
+
|
112
114
|
msgid "Revert Host to a snapshot"
|
113
115
|
msgstr "Host auf einen Snapshot zurücksetzen"
|
114
116
|
|
@@ -118,11 +120,17 @@ msgstr "Wiederherstellen"
|
|
118
120
|
msgid "Rollback to \"%s\"?"
|
119
121
|
msgstr "\"%s\" wirklich wiederherstellen?"
|
120
122
|
|
123
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
124
|
+
msgstr ""
|
125
|
+
|
121
126
|
msgid "Snapshot"
|
122
127
|
msgid_plural "Snapshots"
|
123
128
|
msgstr[0] "Snapshot"
|
124
129
|
msgstr[1] "Snapshots"
|
125
130
|
|
131
|
+
msgid "Snapshot Mode"
|
132
|
+
msgstr ""
|
133
|
+
|
126
134
|
msgid "Snapshot name cannot be changed"
|
127
135
|
msgstr "Der Name des Snapshots kann nicht geändert werden"
|
128
136
|
|
Binary file
|
@@ -6,7 +6,6 @@
|
|
6
6
|
# Translators:
|
7
7
|
# Efstathios Iosifidis <iefstathios@gmail.com>, 2021
|
8
8
|
#
|
9
|
-
#, fuzzy
|
10
9
|
msgid ""
|
11
10
|
msgstr ""
|
12
11
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -74,15 +73,15 @@ msgstr "Αποτυχημένη ενημέρωση στιγμιότυπου: %s"
|
|
74
73
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
75
74
|
msgstr ""
|
76
75
|
|
77
|
-
msgid "Include RAM"
|
78
|
-
msgstr "Συμπερίληψη RAM"
|
79
|
-
|
80
76
|
msgid "List all snapshots"
|
81
77
|
msgstr "Λίστα όλων των στιγμιοτύπων"
|
82
78
|
|
83
79
|
msgid "Loading Snapshots information ..."
|
84
80
|
msgstr "Γίνεται φόρτωση πληροφοριών στιγμιοτύπων ..."
|
85
81
|
|
82
|
+
msgid "Memory"
|
83
|
+
msgstr ""
|
84
|
+
|
86
85
|
msgid "N/A"
|
87
86
|
msgstr "Δ/Υ"
|
88
87
|
|
@@ -104,6 +103,9 @@ msgstr ""
|
|
104
103
|
msgid "No hosts were found with that id, name or query filter"
|
105
104
|
msgstr ""
|
106
105
|
|
106
|
+
msgid "Quiesce"
|
107
|
+
msgstr ""
|
108
|
+
|
107
109
|
msgid "Revert Host to a snapshot"
|
108
110
|
msgstr ""
|
109
111
|
|
@@ -113,11 +115,17 @@ msgstr "Επαναφορά"
|
|
113
115
|
msgid "Rollback to \"%s\"?"
|
114
116
|
msgstr ""
|
115
117
|
|
118
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
119
|
+
msgstr ""
|
120
|
+
|
116
121
|
msgid "Snapshot"
|
117
122
|
msgid_plural "Snapshots"
|
118
123
|
msgstr[0] "Στιγμιότυπο"
|
119
124
|
msgstr[1] "Στιγμιότυπα"
|
120
125
|
|
126
|
+
msgid "Snapshot Mode"
|
127
|
+
msgstr ""
|
128
|
+
|
121
129
|
msgid "Snapshot name cannot be changed"
|
122
130
|
msgstr ""
|
123
131
|
|
Binary file
|
@@ -9,7 +9,6 @@
|
|
9
9
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
10
10
|
# Amit Upadhye <aupadhye@redhat.com>, 2022
|
11
11
|
#
|
12
|
-
#, fuzzy
|
13
12
|
msgid ""
|
14
13
|
msgstr ""
|
15
14
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -78,15 +77,15 @@ msgstr "Échec de la mise à jour de l’instantané : %s"
|
|
78
77
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
79
78
|
msgstr "Plugin Foreman pour gérer les instantanés dans un environnement de matériel virtuel."
|
80
79
|
|
81
|
-
msgid "Include RAM"
|
82
|
-
msgstr "Inclure la RAM"
|
83
|
-
|
84
80
|
msgid "List all snapshots"
|
85
81
|
msgstr "Liste de tous les instantanés"
|
86
82
|
|
87
83
|
msgid "Loading Snapshots information ..."
|
88
84
|
msgstr "Chargement des informations sur les instantanés ..."
|
89
85
|
|
86
|
+
msgid "Memory"
|
87
|
+
msgstr ""
|
88
|
+
|
90
89
|
msgid "N/A"
|
91
90
|
msgstr "Sans objet"
|
92
91
|
|
@@ -108,6 +107,9 @@ msgstr "Aucun hôte capable sélectionné"
|
|
108
107
|
msgid "No hosts were found with that id, name or query filter"
|
109
108
|
msgstr "Aucun hôte trouvé avec cet ID, ce nom ou filtre de requête"
|
110
109
|
|
110
|
+
msgid "Quiesce"
|
111
|
+
msgstr ""
|
112
|
+
|
111
113
|
msgid "Revert Host to a snapshot"
|
112
114
|
msgstr "Revenir à un instantané de l'hôte"
|
113
115
|
|
@@ -117,12 +119,18 @@ msgstr "Rollback"
|
|
117
119
|
msgid "Rollback to \"%s\"?"
|
118
120
|
msgstr "Retour à \"%s\" ?"
|
119
121
|
|
122
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
123
|
+
msgstr ""
|
124
|
+
|
120
125
|
msgid "Snapshot"
|
121
126
|
msgid_plural "Snapshots"
|
122
127
|
msgstr[0] "Instantané"
|
123
128
|
msgstr[1] "Instantanés"
|
124
129
|
msgstr[2] "Instantanés"
|
125
130
|
|
131
|
+
msgid "Snapshot Mode"
|
132
|
+
msgstr ""
|
133
|
+
|
126
134
|
msgid "Snapshot name cannot be changed"
|
127
135
|
msgstr "Le nom de l’instantané ne peut pas être modifié"
|
128
136
|
|
Binary file
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2021
|
8
8
|
# Amit Upadhye <aupadhye@redhat.com>, 2022
|
9
9
|
#
|
10
|
-
#, fuzzy
|
11
10
|
msgid ""
|
12
11
|
msgstr ""
|
13
12
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -75,15 +74,15 @@ msgstr "スナップショットの更新に失敗しました: %s"
|
|
75
74
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
76
75
|
msgstr "仮想ハードウェア環境でスナップショットを管理する Foreman-plugin。"
|
77
76
|
|
78
|
-
msgid "Include RAM"
|
79
|
-
msgstr "メモリーの追加"
|
80
|
-
|
81
77
|
msgid "List all snapshots"
|
82
78
|
msgstr "全スナップショットの一覧表示"
|
83
79
|
|
84
80
|
msgid "Loading Snapshots information ..."
|
85
81
|
msgstr "スナップショット情報の読み込み中 ..."
|
86
82
|
|
83
|
+
msgid "Memory"
|
84
|
+
msgstr ""
|
85
|
+
|
87
86
|
msgid "N/A"
|
88
87
|
msgstr "N/A"
|
89
88
|
|
@@ -105,6 +104,9 @@ msgstr "有効にできるホストが選択されていません"
|
|
105
104
|
msgid "No hosts were found with that id, name or query filter"
|
106
105
|
msgstr "その ID、名前またはクエリーフィルターを使ってホストを見つけることができませんでした"
|
107
106
|
|
107
|
+
msgid "Quiesce"
|
108
|
+
msgstr ""
|
109
|
+
|
108
110
|
msgid "Revert Host to a snapshot"
|
109
111
|
msgstr "ホストをスナップショットに戻す"
|
110
112
|
|
@@ -114,10 +116,16 @@ msgstr "ロールバック"
|
|
114
116
|
msgid "Rollback to \"%s\"?"
|
115
117
|
msgstr "\"%s\" へロールバックしますか ?"
|
116
118
|
|
119
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
120
|
+
msgstr ""
|
121
|
+
|
117
122
|
msgid "Snapshot"
|
118
123
|
msgid_plural "Snapshots"
|
119
124
|
msgstr[0] "スナップショット"
|
120
125
|
|
126
|
+
msgid "Snapshot Mode"
|
127
|
+
msgstr ""
|
128
|
+
|
121
129
|
msgid "Snapshot name cannot be changed"
|
122
130
|
msgstr "スナップショット名は変更できません"
|
123
131
|
|
Binary file
|
@@ -6,7 +6,6 @@
|
|
6
6
|
# Translators:
|
7
7
|
# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022
|
8
8
|
#
|
9
|
-
#, fuzzy
|
10
9
|
msgid ""
|
11
10
|
msgstr ""
|
12
11
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -74,15 +73,15 @@ msgstr "სწრაფი ასლის განახლების შე
|
|
74
73
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
75
74
|
msgstr "Foreman-ის დამატება ვირტუალურ გარემოში სწრაფი ასლების სამართავად."
|
76
75
|
|
77
|
-
msgid "Include RAM"
|
78
|
-
msgstr "RAM-ის ჩათვლით"
|
79
|
-
|
80
76
|
msgid "List all snapshots"
|
81
77
|
msgstr "სწრაფი ასლების სია"
|
82
78
|
|
83
79
|
msgid "Loading Snapshots information ..."
|
84
80
|
msgstr "სწრაფი ასლების ინფორმაციის ჩატვირთვა ..."
|
85
81
|
|
82
|
+
msgid "Memory"
|
83
|
+
msgstr ""
|
84
|
+
|
86
85
|
msgid "N/A"
|
87
86
|
msgstr "არარსებული"
|
88
87
|
|
@@ -104,6 +103,9 @@ msgstr "შესაძლებლობის მქონე ჰოსტე
|
|
104
103
|
msgid "No hosts were found with that id, name or query filter"
|
105
104
|
msgstr "მითითებული ID-ით, სახელით ან საძებნი სტრიქონით ჰოსტები ნაპოვნი არაა"
|
106
105
|
|
106
|
+
msgid "Quiesce"
|
107
|
+
msgstr ""
|
108
|
+
|
107
109
|
msgid "Revert Host to a snapshot"
|
108
110
|
msgstr "ჰოსტის სწრაფ ასლზე დაბრუნება"
|
109
111
|
|
@@ -113,11 +115,17 @@ msgstr "უკან დაბრუნება"
|
|
113
115
|
msgid "Rollback to \"%s\"?"
|
114
116
|
msgstr "დავაბრუნო \"%s\"-ზე?"
|
115
117
|
|
118
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
119
|
+
msgstr ""
|
120
|
+
|
116
121
|
msgid "Snapshot"
|
117
122
|
msgid_plural "Snapshots"
|
118
123
|
msgstr[0] "სწრაფი ასლი"
|
119
124
|
msgstr[1] "სწრაფი ასლები"
|
120
125
|
|
126
|
+
msgid "Snapshot Mode"
|
127
|
+
msgstr ""
|
128
|
+
|
121
129
|
msgid "Snapshot name cannot be changed"
|
122
130
|
msgstr "სწრაფი ასლის სახელის შეცვლა შეუძლებელია"
|
123
131
|
|
Binary file
|
@@ -8,7 +8,6 @@
|
|
8
8
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2019
|
9
9
|
# Amit Upadhye <aupadhye@redhat.com>, 2022
|
10
10
|
#
|
11
|
-
#, fuzzy
|
12
11
|
msgid ""
|
13
12
|
msgstr ""
|
14
13
|
"Project-Id-Version: foreman_snapshot_management 2.0.2\n"
|
@@ -77,15 +76,15 @@ msgstr "更新快照失败:%s"
|
|
77
76
|
msgid "Foreman-plugin to manage snapshots in a virtual-hardware environments."
|
78
77
|
msgstr "Foreman-plugin,用于在虚拟硬件环境中管理快照。"
|
79
78
|
|
80
|
-
msgid "Include RAM"
|
81
|
-
msgstr "包括 RAM"
|
82
|
-
|
83
79
|
msgid "List all snapshots"
|
84
80
|
msgstr "列出所有快照"
|
85
81
|
|
86
82
|
msgid "Loading Snapshots information ..."
|
87
83
|
msgstr "加载快照信息..."
|
88
84
|
|
85
|
+
msgid "Memory"
|
86
|
+
msgstr ""
|
87
|
+
|
89
88
|
msgid "N/A"
|
90
89
|
msgstr "不适用"
|
91
90
|
|
@@ -107,6 +106,9 @@ msgstr "没有选择可用的主机"
|
|
107
106
|
msgid "No hosts were found with that id, name or query filter"
|
108
107
|
msgstr "未找到符合此 id、名称或者查询过滤器的主机"
|
109
108
|
|
109
|
+
msgid "Quiesce"
|
110
|
+
msgstr ""
|
111
|
+
|
110
112
|
msgid "Revert Host to a snapshot"
|
111
113
|
msgstr "将主机恢复到快照"
|
112
114
|
|
@@ -116,10 +118,16 @@ msgstr "回滚rollback"
|
|
116
118
|
msgid "Rollback to \"%s\"?"
|
117
119
|
msgstr "回滚到 \"%s\"?"
|
118
120
|
|
121
|
+
msgid "Select Snapshot Mode between mutually exclusive options, 'Memory' (includes RAM) and 'Quiesce'."
|
122
|
+
msgstr ""
|
123
|
+
|
119
124
|
msgid "Snapshot"
|
120
125
|
msgid_plural "Snapshots"
|
121
126
|
msgstr[0] "快照"
|
122
127
|
|
128
|
+
msgid "Snapshot Mode"
|
129
|
+
msgstr ""
|
130
|
+
|
123
131
|
msgid "Snapshot name cannot be changed"
|
124
132
|
msgstr "无法更改快照名称"
|
125
133
|
|
data/package.json
CHANGED
@@ -6,7 +6,7 @@ class Api::V2::SnapshotsControllerTest < ActionController::TestCase
|
|
6
6
|
let(:tax_location) { Location.find_by(name: 'Location 1') }
|
7
7
|
let(:tax_organization) { Organization.find_by(name: 'Organization 1') }
|
8
8
|
let(:compute_resource) do
|
9
|
-
cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], organizations
|
9
|
+
cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], :organizations => [tax_organization])
|
10
10
|
ComputeResource.find_by(id: cr.id)
|
11
11
|
end
|
12
12
|
let(:uuid) { '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
|
@@ -7,7 +7,7 @@ module ForemanSnapshotManagement
|
|
7
7
|
let(:tax_location) { Location.find_by(name: 'Location 1') }
|
8
8
|
let(:tax_organization) { Organization.find_by(name: 'Organization 1') }
|
9
9
|
let(:compute_resource) do
|
10
|
-
cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], organizations
|
10
|
+
cr = FactoryBot.create(:compute_resource, :vmware, :uuid => 'Solutions', :locations => [tax_location], :organizations => [tax_organization])
|
11
11
|
ComputeResource.find_by(id: cr.id)
|
12
12
|
end
|
13
13
|
let(:uuid) { '5032c8a5-9c5e-ba7a-3804-832a03e16381' }
|
@@ -18,7 +18,7 @@ const SnapshotManagementCard = ({ hostDetails, ...props }) => {
|
|
18
18
|
hostDetails?.capabilities?.includes('snapshot_include_quiesce') || false,
|
19
19
|
};
|
20
20
|
|
21
|
-
if (hostDetails?.id && hostDetails?.permissions)
|
21
|
+
if (hostDetails?.uuid && hostDetails?.id && hostDetails?.permissions) {
|
22
22
|
children.push(
|
23
23
|
<SnapshotManagement
|
24
24
|
key="SnapshotManagement"
|
@@ -30,14 +30,16 @@ const SnapshotManagementCard = ({ hostDetails, ...props }) => {
|
|
30
30
|
capabilities={capabilities}
|
31
31
|
/>
|
32
32
|
);
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
33
|
+
return (
|
34
|
+
<CardTemplate
|
35
|
+
overrideGridProps={{ xl2: 6, xl: 8, lg: 8, md: 12 }}
|
36
|
+
header={__('Snapshots')}
|
37
|
+
>
|
38
|
+
{children}
|
39
|
+
</CardTemplate>
|
40
|
+
);
|
41
|
+
}
|
42
|
+
return null;
|
41
43
|
};
|
42
44
|
|
43
45
|
export default SnapshotManagementCard;
|
@@ -46,6 +48,7 @@ SnapshotManagementCard.propTypes = {
|
|
46
48
|
hostDetails: PropTypes.shape({
|
47
49
|
name: PropTypes.string,
|
48
50
|
id: PropTypes.number,
|
51
|
+
uuid: PropTypes.string,
|
49
52
|
capabilities: PropTypes.array,
|
50
53
|
permissions: PropTypes.shape({
|
51
54
|
create_snapshots: PropTypes.bool,
|
@@ -114,19 +114,4 @@ exports[`SnapshotManagementCard renders with VMWare capabilities 1`] = `
|
|
114
114
|
</CardTemplate>
|
115
115
|
`;
|
116
116
|
|
117
|
-
exports[`SnapshotManagementCard renders without optional Props 1`] = `
|
118
|
-
<CardTemplate
|
119
|
-
expandable={false}
|
120
|
-
header="Snapshots"
|
121
|
-
masonryLayout={false}
|
122
|
-
overrideDropdownProps={Object {}}
|
123
|
-
overrideGridProps={
|
124
|
-
Object {
|
125
|
-
"lg": 8,
|
126
|
-
"md": 12,
|
127
|
-
"xl": 8,
|
128
|
-
"xl2": 6,
|
129
|
-
}
|
130
|
-
}
|
131
|
-
/>
|
132
|
-
`;
|
117
|
+
exports[`SnapshotManagementCard renders without optional Props 1`] = `""`;
|