mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Sync precommit config from main (#7732)
Co-authored-by: John Bampton <jbampton@users.noreply.github.com> Co-authored-by: dahn <daan@onecht.net>
This commit is contained in:
parent
939ee9e153
commit
594c70dde0
@ -26,17 +26,18 @@ repos:
|
||||
- id: identity
|
||||
- id: check-hooks-apply
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.1.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
#- id: check-added-large-files
|
||||
#- id: check-case-conflict
|
||||
- id: check-case-conflict
|
||||
#- id: check-executables-have-shebangs
|
||||
#- id: check-merge-conflict
|
||||
#- id: check-vcs-permalinks
|
||||
- id: check-vcs-permalinks
|
||||
#- id: check-yaml
|
||||
#- id: detect-private-key
|
||||
#- id: end-of-file-fixer
|
||||
- id: end-of-file-fixer
|
||||
files: \.(java|md|py|txt|yaml|yml)$
|
||||
#- id: fix-byte-order-marker
|
||||
- id: mixed-line-ending
|
||||
files: \.(java|py)$
|
||||
files: \.(java|md|py|txt|yaml|yml)$
|
||||
# - id: trailing-whitespace
|
||||
|
||||
@ -113,5 +113,3 @@ public class UploadTemplateDirectDownloadCertificateCmd extends BaseCmd {
|
||||
return CallContext.current().getCallingAccount().getId();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -24,4 +24,3 @@ import org.apache.cloudstack.api.response.TemplateResponse;
|
||||
@APICommand(name = "copyTemplate", description = "Copies a template from one zone to another.", responseObject = TemplateResponse.class, responseView = ResponseView.Full,
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false)
|
||||
public class CopyTemplateCmdByAdmin extends CopyTemplateCmd {}
|
||||
|
||||
|
||||
@ -74,4 +74,3 @@ public class CopyTemplateCmdByAdminTest{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -72,4 +72,3 @@ public class CopyTemplateCmdTest{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -41,4 +41,3 @@ public class SetPortForwardingRulesCommand extends NetworkElementCommand {
|
||||
return rules;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -26,4 +26,3 @@ public final class HostInfo {
|
||||
public static final String HOST_OS_KERNEL_VERSION = "Host.OS.Kernel.Version"; //linux-2.6.31 etc
|
||||
public static final String XS620_SNAPSHOT_HOTFIX = "xs620_snapshot_hotfix";
|
||||
}
|
||||
|
||||
|
||||
@ -63,4 +63,3 @@ public class MoveVolumeCommand extends Command {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -43,4 +43,3 @@ public class JavaStorageLayerTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -234,4 +234,3 @@ public interface IpAddressManager {
|
||||
public static final String MESSAGE_ASSIGN_IPADDR_EVENT = "Message.AssignIpAddr.Event";
|
||||
public static final String MESSAGE_RELEASE_IPADDR_EVENT = "Message.ReleaseIpAddr.Event";
|
||||
}
|
||||
|
||||
|
||||
@ -29,4 +29,3 @@ public interface ServiceOfferingDetailsDao extends GenericDao<ServiceOfferingDet
|
||||
String getDetail(Long diskOfferingId, String key);
|
||||
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
||||
}
|
||||
|
||||
|
||||
@ -185,4 +185,3 @@ public class Upgrade40to41 implements DbUpgrade {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -80,6 +80,3 @@ public class Site2SiteVpnGatewayDetailVO implements ResourceDetail {
|
||||
return display;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -29,4 +29,3 @@ public interface DiskOfferingDetailsDao extends GenericDao<DiskOfferingDetailVO,
|
||||
String getDetail(Long diskOfferingId, String key);
|
||||
List<Long> findOfferingIdsByDomainIds(List<Long> domainIds);
|
||||
}
|
||||
|
||||
|
||||
@ -74,4 +74,3 @@ public class DiskOfferingDetailsDaoImpl extends ResourceDetailsDaoBase<DiskOffer
|
||||
return findResourceIdsByNameAndValueIn("domainid", dIds);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -24,4 +24,3 @@ import com.cloud.utils.db.GenericDao;
|
||||
public interface Site2SiteVpnGatewayDetailsDao extends GenericDao<Site2SiteVpnGatewayDetailVO, Long>, ResourceDetailsDao<Site2SiteVpnGatewayDetailVO> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -68,5 +68,3 @@ public class VMInstanceDaoImplTest {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -247,5 +247,3 @@ public class SecondaryStorageServiceImpl implements SecondaryStorageService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,3 @@ ALSO, you have to tweak the generated code to expose useful details such as the
|
||||
E.g. the generated code creates a wrapper called class ComputerSystem for WMI objects of class Msvm_ComputerSystem.
|
||||
Thus, there is a mismatch in the class name and the corresponding WMI class, and the WMI class name is a private
|
||||
constant static member. The tweak involves making this member public.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -109,4 +109,3 @@ public class LibvirtPatchSystemVmCommandWrapper extends CommandWrapper<PatchSyst
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -326,4 +326,3 @@ runcmd:
|
||||
- /opt/bin/setup-kube-system
|
||||
- until [ -f /etc/systemd/system/deploy-kube-system.service ]; do sleep 5; done
|
||||
- systemctl start deploy-kube-system
|
||||
|
||||
|
||||
@ -85,4 +85,3 @@ public class ListTungstenFabricProvidersCmd extends BaseListCmd {
|
||||
setResponseObject(listResponse);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -72,4 +72,3 @@ public class Gateway {
|
||||
this.routes = routes;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -45,4 +45,3 @@ public class Subnet {
|
||||
this.length = length;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -72,4 +72,3 @@ public class ListTungstenFabricProvidersCmdTest {
|
||||
Assert.assertEquals(responseList, listTungstenFabricProvidersCmd.getResponseObject());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -350,4 +350,3 @@ Supported Virtual machine operations - live migration of VM to another host, vir
|
||||
Supported Volume operations - attach/detach volume, live migrate volume between two StorPool primary storages, volume snapshot, delete snapshot, revert snapshot
|
||||
|
||||
Note: volume snapshot are allowed only when `sp.bypass.secondary.storage` is set to `true`. This means that the snapshots are not backed up to secondary storage
|
||||
|
||||
|
||||
@ -68,4 +68,3 @@ END
|
||||
For packet flow, @see http://msdn.microsoft.com/en-us/library/cc226794.aspx
|
||||
*/
|
||||
package rdpclient.ntlmssp;
|
||||
|
||||
|
||||
@ -245,4 +245,3 @@ public class ClientSynchronizePDU extends OneTimeSwitch {
|
||||
MessageType: 0x1, MUST be set to SYNCMSGTYPE_SYNC (1)
|
||||
TargetUser: 1002 (0x3EA)
|
||||
*/
|
||||
|
||||
|
||||
@ -40,4 +40,3 @@ VMWare and HyperV in `dist` directory:
|
||||
|
||||
bash build.sh systemvmtemplate
|
||||
bash build.sh builtin
|
||||
|
||||
|
||||
@ -91,5 +91,3 @@ vagrant up
|
||||
```
|
||||
python -m marvin.deployDataCenter -i marvin.cfg
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -64,4 +64,3 @@ OR
|
||||
|
||||
### 5. wait for templates and system VMs to be ready
|
||||
`$ nosetests -v --with-marvin --marvin-config=deployment.cfg --result-log=result.log testSetupSuccess.py`
|
||||
|
||||
|
||||
@ -107,4 +107,3 @@ public class ImageStoreUtil {
|
||||
.anyMatch(lowerCasePath::endsWith);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -100,5 +100,3 @@ public class PbmProfileManagerMO extends BaseMO {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user