Featura Mount Store Op
Closes #220 (closed)
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
Owner
Umount would be nice
👍 -
Owner
+1 if works (I don't have store in my devenv)
-
-
Closes #220 (closed)
Umount would be nice
917 | 921 | |
918 | 922 | |
919 | 923 | register_operation(PasswordResetOperation) |
924 | ||
925 | ||
926 | class MountStoreOperation(InstanceOperation): | |
927 | activity_code_suffix = 'mount_store' | |
928 | id = 'mount_store' | |
929 | name = _("mount store") | |
930 | description = _( | |
931 | "This operation attaches your personal file store. Other users who " | |
932 | "has acces to this machine can see these files as well." | |
Please
register
or
sign in
to reply
|
931 | "This operation attaches your personal file store. Other users who " | |
932 | "has acces to this machine can see these files as well." | |
933 | ) | |
934 | acl_level = "owner" | |
935 | required_perms = () | |
936 | ||
937 | def check_precond(self): | |
938 | super(MountStoreOperation, self).check_precond() | |
939 | if self.instance.status not in ["RUNNING"]: | |
940 | raise self.instance.WrongStateError(self.instance) | |
941 | ||
942 | try: | |
943 | latest_deploy = InstanceActivity.objects.filter( | |
944 | instance=self.instance, activity_code="vm.Instance.deploy" | |
945 | ).latest("finished").finished | |
946 | except InstanceActivity.DoesNotExist: # no deploy no agent | |
|
924 | ||
925 | ||
926 | class MountStoreOperation(InstanceOperation): | |
927 | activity_code_suffix = 'mount_store' | |
928 | id = 'mount_store' | |
929 | name = _("mount store") | |
930 | description = _( | |
931 | "This operation attaches your personal file store. Other users who " | |
932 | "has acces to this machine can see these files as well." | |
933 | ) | |
934 | acl_level = "owner" | |
935 | required_perms = () | |
936 | ||
937 | def check_precond(self): | |
938 | super(MountStoreOperation, self).check_precond() | |
939 | if self.instance.status not in ["RUNNING"]: | |
|
930 | description = _( | |
931 | "This operation attaches your personal file store. Other users who " | |
932 | "has acces to this machine can see these files as well." | |
933 | ) | |
934 | acl_level = "owner" | |
935 | required_perms = () | |
936 | ||
937 | def check_precond(self): | |
938 | super(MountStoreOperation, self).check_precond() | |
939 | if self.instance.status not in ["RUNNING"]: | |
940 | raise self.instance.WrongStateError(self.instance) | |
941 | ||
942 | try: | |
943 | latest_deploy = InstanceActivity.objects.filter( | |
944 | instance=self.instance, activity_code="vm.Instance.deploy" | |
945 | ).latest("finished").finished | |
|
+1 if works (I don't have store in my devenv)
fixed (3f86ff11)urlsplit("http://szia.hu:8111").hostname
mentioned in merge request !147 (merged)